NexusFi: Find Your Edge


Home Menu

 





Determination of intraday rise and fall


Discussion in EasyLanguage Programming

Updated
      Top Posters
    1. looks_one LW11041104 with 5 posts (0 thanks)
    2. looks_two abev with 2 posts (0 thanks)
    3. looks_3 artisanpro with 1 posts (0 thanks)
    4. looks_4 bfulks with 1 posts (0 thanks)
    1. trending_up 757 views
    2. thumb_up 0 thanks given
    3. group 3 followers
    1. forum 8 posts
    2. attach_file 1 attachments




 
Search this Thread

Determination of intraday rise and fall

  #1 (permalink)
LW11041104
Tokyo,Sapporo
 
Posts: 74 since Jan 2023
Thanks Given: 2
Thanks Received: 3

The code here is to color the indicator cyan if it is higher than the day's close when the indicator is inserted into the watch list, and red if it has not made an intraday high on the day.

However, I would like to color the indicator when the intraday high or intraday low is first renewed.

For example, in the attached image here, the intraday low of the close leg was made first, so I want the indicator to be colored down (red).


 
Code
variable:var0(0),var1(0);

if date[1]<>date[0] then begin
   
   var0=high;
   var1=low;
   end;
    
if high[0]>var0[0] then begin
       
   plot1(high,"",Cyan);
   end
    
else if low<var1 then begin
     
     plot1(low,"",red);
     end;


・Correction of codes and attached images

 
Code
variable:var0(0),var1(0);

     
     if Date <> Date[1] then begin
		var0 = High;
		var1 = Low;
		end
     else if High > var0 then 
		begin
		Plot1( High,"",Cyan);
		Alert ;
		var0 = High ;
		end 
	
     else if Low<var1 then
	       begin
	       plot1(Low,"",red);
	       var1 = Low;
	       end;
https://drive.google.com/file/d/17c_9KBsdV7j6oXMrc8s8xL_-AKK7JF17/view?usp=sharing(watchlist)

https://drive.google.com/file/d/1U3Bd-zwpAxQnkoma52FYE4Bz_nAYQUyD/view?usp=sharing(chart image)

Attached Thumbnails
Click image for larger version

Name:	2023-06-01 Judgment of the day's mid-day high value, rise and fall.png
Views:	109
Size:	66.4 KB
ID:	332475  
Reply With Quote

Can you help answer these questions
from other members on NexusFi?
ZombieSqueeze
Platforms and Indicators
PowerLanguage & EasyLanguage. How to get the platfor …
EasyLanguage Programming
REcommedations for programming help
Sierra Chart
Trade idea based off three indicators.
Traders Hideout
MC PL editor upgrade
MultiCharts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
Just another trading journal: PA, Wyckoff & Trends
25 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
21 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #2 (permalink)
artisanpro
montreal, qc, canada
 
Posts: 28 since May 2021
Thanks Given: 28
Thanks Received: 18

I do not understand what you want to do. Could you provide more information?

I suppose that the image you show comes from a site/ system that you have seen and you would like to replicate it. If relevant and able, provide the link so that your request for help would be better understood

Reply With Quote
  #3 (permalink)
 bfulks 
Boston MA
 
Experience: Advanced
Platform: TradeStation
Trading: Stocks and options
Posts: 24 since Aug 2022
Thanks Given: 2
Thanks Received: 4


It looks to me as if it is colored red so it's not clear what you would like different.

Reply With Quote
  #4 (permalink)
abev
seattle washington
 
Posts: 75 since Feb 2019
Thanks Given: 11
Thanks Received: 29

I have to agree with the other posts. I ran the posted code and it produces the posted screenshot so not sure what it is that you want.

Reply With Quote
  #5 (permalink)
LW11041104
Tokyo,Sapporo
 
Posts: 74 since Jan 2023
Thanks Given: 2
Thanks Received: 3


artisanpro View Post
I do not understand what you want to do. Could you provide more information?

I suppose that the image you show comes from a site/ system that you have seen and you would like to replicate it. If relevant and able, provide the link so that your request for help would be better understood


Thank you for your reply.

I have corrected the code and attached image and hope you will refer to my first post.

I want to color the first bar as the image shows to determine which rose or fell first after that bar.

For example, the image shows the intraday low of the first bar first, so I want to paint it red.

However, when I run the modified code, it turns light blue (watch list).

Reply With Quote
  #6 (permalink)
LW11041104
Tokyo,Sapporo
 
Posts: 74 since Jan 2023
Thanks Given: 2
Thanks Received: 3


bfulks View Post
It looks to me as if it is colored red so it's not clear what you would like different.

Thank you for your reply.

The chart is an example and I want to do it in the watch list.

I have also edited my first post and hope you will check it.

Reply With Quote
  #7 (permalink)
LW11041104
Tokyo,Sapporo
 
Posts: 74 since Jan 2023
Thanks Given: 2
Thanks Received: 3


abev View Post
I have to agree with the other posts. I ran the posted code and it produces the posted screenshot so not sure what it is that you want.


Thank you for your reply.

I would like to determine in which direction it rises or falls after the first bar and color it according to that first updated direction.

I have also edited my first post and would appreciate it if you could check it.

Reply With Quote
  #8 (permalink)
abev
seattle washington
 
Posts: 75 since Feb 2019
Thanks Given: 11
Thanks Received: 29

Still having issues figuring out what it is you want to do that is different than what is being shown. After a bit of thought here is what I think you mean to say using your own message:

***************
The code here is to color the indicator cyan if it is higher than the day's close when the indicator is inserted into the watch list, and red if it has not made an intraday high on the day. For example, in the attached image here, the intraday low of the close leg was made first, so I want the indicator to be colored down (red).

However, I would like to color the indicator when the intraday high or intraday low is first renewed.
***************

I believe that you know you have correctly coded for the first paragraph and have given a screen shot of what that code produces and that you are happy with everything so far. Then you say "However..." and go on to state the change you wish to make.

Am I right so far? If so, when use the word "renew", do you mean a new low of day (LoD)?

Reply With Quote
  #9 (permalink)
LW11041104
Tokyo,Sapporo
 
Posts: 74 since Jan 2023
Thanks Given: 2
Thanks Received: 3


abev View Post
Still having issues figuring out what it is you want to do that is different than what is being shown. After a bit of thought here is what I think you mean to say using your own message:

***************
The code here is to color the indicator cyan if it is higher than the day's close when the indicator is inserted into the watch list, and red if it has not made an intraday high on the day. For example, in the attached image here, the intraday low of the close leg was made first, so I want the indicator to be colored down (red).

However, I would like to color the indicator when the intraday high or intraday low is first renewed.
***************

I believe that you know you have correctly coded for the first paragraph and have given a screen shot of what that code produces and that you are happy with everything so far. Then you say "However..." and go on to state the change you wish to make.

Am I right so far? If so, when use the word "renew", do you mean a new low of day (LoD)?



When we use the word "renewal" we mean both new lows and new highs.

The chart I attached shows the data for the COO symbol for May 31, and the intraday leg for that day renewed both new highs and new lows after the next leg of the first close bar, but the new low renewed first.

In other words, we want to color the watch list if either the high or the low updates a new price first.

In the case of the chart example in the attached image, we have priced the new intraday low first, so we do not want to include the new intraday high after that as a calculation.

Hypothetically, if we priced a new high price ahead of the new low price, we want to make sure that any new lows made after that will not be included in the calculation.

Reply With Quote




Last Updated on June 7, 2023


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts