NexusFi: Find Your Edge


Home Menu

 





About the Indicator where the high of the day renews the high of the previous day


Discussion in MultiCharts

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




 
Search this Thread

About the Indicator where the high of the day renews the high of the previous day

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

Thank you for your help.

The attached file is an indicator that plots and outputs an alert when the resolution is set to "Day" and the high of the day is greater than the high of the previous day, but when the resolution is set to 1 minute, it compares the current bar with the previous bar. I think.

So, even if the Resolution is set to 1 minute, I would like to output a plot and alerts when the high of the day updates the high of the previous day.

 
Code
if high[0]>high[1] then begin
  plot1(open);
  plot2(high);
  plot3(low);
  plot4(close);
  alert("High");
end

else  begin
    Noplot(1);
    Noplot(2);
    Noplot(3);
    Noplot(4);

end;

Attached Thumbnails
Click image for larger version

Name:	スクリーンショット 2023-03-31 About the In.png
Views:	83
Size:	30.6 KB
ID:	330700  
Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Cheap historycal L1 data for stocks
Stocks and ETFs
Quant vue
Trading Reviews and Vendors
MC PL editor upgrade
MultiCharts
How to apply profiles
Traders Hideout
Better Renko Gaps
The Elite Circle
 
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629

LW11041104,

you have posted code here that demonstrates tracking a daily high on an intraday chart. You need a similar approach for this task and store this value in a new variable on a new day.
Then you can check if the current bar's high is greater than the value stored in the variable that holds yesterday's high.

Regards,

ABCTG


LW11041104 View Post
Thank you for your help.

The attached file is an indicator that plots and outputs an alert when the resolution is set to "Day" and the high of the day is greater than the high of the previous day, but when the resolution is set to 1 minute, it compares the current bar with the previous bar. I think.

So, even if the Resolution is set to 1 minute, I would like to output a plot and alerts when the high of the day updates the high of the previous day.

 
Code
if high[0]>high[1] then begin
  plot1(open);
  plot2(high);
  plot3(low);
  plot4(close);
  alert("High");
end

else  begin
    Noplot(1);
    Noplot(2);
    Noplot(3);
    Noplot(4);

end;


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


Thank you for your reply.

Does that mean using functions or reserved words after having variables?

Reply With Quote
  #4 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629

LW11041104,

there are usually multiple ways to accomplish a goal in PowerLanguage. When you look at the original code you posted in the other thread, it shows how you can track the daily high using one variable and the reserved word high.

Regards,

ABCTG


LW11041104 View Post
Thank you for your reply.

Does that mean using functions or reserved words after having variables?


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

Thank you for your reply.

You mentioned that you posted in another thread, could you please tell me which thread that is in?

Reply With Quote
  #6 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629

LW11041104,

we might misunderstand each other. I mentioned that you posted code and I included the link to that thread in my first reply in this thread.

Regards,

ABCTG


LW11041104 View Post
Thank you for your reply.

You mentioned that you posted in another thread, could you please tell me which thread that is in?


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

Thank you for your reply.

So that's what you meant.
I understand.

Reply With Quote




Last Updated on April 5, 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