NexusFi: Find Your Edge


Home Menu

 





New intraday high


Discussion in EasyLanguage Programming

Updated
    1. trending_up 519 views
    2. thumb_up 0 thanks given
    3. group 3 followers
    1. forum 4 posts
    2. attach_file 2 attachments




 
Search this Thread

New intraday high

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

I want to plot anything higher than the new intraday high on the radar screen.
However, when I apply the following code, the symbols AKLI and APRN are plotted even when they are not.

As an example, the symbol AAPL is higher than the second bar from the opening price than the previous bar, but I want to prevent this from also being plotted on the radar screen.
As an example, I would like to plot the condition as met when the price reaches the point indicated by the arrow as shown in the attached image.

The example in the attached image shows chart data for July 14, 2023.

Any help would be appreciated.

 
Code
variable:Open_(0),High_(0),low_(0),Close_(0); 
 
if Date[1] <> Date[0] then begin 
    
   Open_ = open; 
   High_ = high; 
   low_  = low; 
   Close_= close;  
	 
end 
    
else  
    
if Open_<Close_ then begin 
 
  if high>High_ then  
    
     print(Symbol,High_,Spaces(4),date,time); 
     Plot1(High_,"",Cyan); 
  end 
    
Else 
    
    if Open_>Close_ then begin 
       
      if high>High_  then  
    
        print(Symbol,High_,Spaces(4),date,time); 
        Plot1(High_,"",red); 
       
      end 
       
    Else 
     
        if Open_=Close_ then begin 
        
          if high>High_  then  
          
            print(Symbol,High_,Spaces(4),date,time); 
            Plot1(High_,"",yellow); 
       
          end 
       
        Else 
     
Noplot(1);

Attached Thumbnails
Click image for larger version

Name:	2023-07-15 New intraday high.jpg
Views:	69
Size:	137.2 KB
ID:	333561  
Reply With Quote

Can you help answer these questions
from other members on NexusFi?
MC PL editor upgrade
MultiCharts
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Better Renko Gaps
The Elite Circle
REcommedations for programming help
Sierra Chart
Cheap historycal L1 data for stocks
Stocks and ETFs
 
  #2 (permalink)
RandyK0615
Grand Junction, CO
 
Posts: 4 since Mar 2022
Thanks Given: 0
Thanks Received: 1

Try moving

Open_ = open;
High_ = high;
low_ = low;
Close_= close;

to the bottome of the code or using If high > high[1]

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


In your code, TradeStation thinks "Open" is the same as "open". Same for Close, High, and Low.

In your code, "Replace all" of:[*]LIST][*]Open with dOpen[*]Close with dClose[*]High with dHigh[*]Low with dLow

This makes them different variables.

Bob

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


RandyK0615 View Post
Try moving

Open_ = open;
High_ = high;
low_ = low;
Close_= close;

to the bottome of the code or using If high > high[1]


Thank you for your reply.


1: The attached image here is the existing New High for Day indicator in TradeStation, but first, the AAPL chart, I think the second bar is larger than the high of the first bar.
In that case I want to prevent it from being plotted.

However, the third bar is also larger than the high of the second bar. So we want it to be plotted (green).
After that, we want to make sure that the fourth bar and beyond are not included in the calculation.

2:Next is ABNB. The third bar is negative and we want to plot it (green) at the fourth bar, but not at the new high after the fifth bar.

3: Next is AEP, the first bar is negative and then the first new high is made, which I want to plot (red). I would like to leave the subsequent new highs unplotted.

4: Finally, CTSH made a new high at the third bar and I want to plot it at that time. The bars after that are the same as above.

The aforementioned is also true on the RadarScreen.

Thank you in advance for your help.






2023-07-22 New High for Day

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


bfulks View Post
In your code, TradeStation thinks "Open" is the same as "open". Same for Close, High, and Low.

In your code, "Replace all" of:[*]LIST][*]Open with dOpen[*]Close with dClose[*]High with dHigh[*]Low with dLow

This makes them different variables.

Bob

Thank you for your reply.

Does that mean replacing it with an OpenD function or something else?

Reply With Quote




Last Updated on July 26, 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