Attachments forums

List of attachments posted on this forum.


All files on forums: 159887

Re: Indicators with ON/OFF buttons

RedEye, Thu Jul 06, 2023 4:21 am

quangvuig wrote: Fri Jun 23, 2023 7:59 pm I used this newspaper and found it quite good, but HH LH covered the candle, hoping the engineers would edit it and leave it blank, so as not to coincide with the candle. Hope the engineers help, or show me which code to fix, thanks
Image
Hello all,
This is my first post in this wonderful community :D I have fixed the code, now the labels are positioned based on ATR value and should not overlapped with the candles anymore. You can change the ATR value and Labeldistance is the ATR multiplier. If Labeldistance is 0.0, the labels will be placed on the high or low of the candle. Why ATR? It can be used as stoploss level should you want to.

extern double Labeldistance = 1.0;
extern int ATRPeriod = 20;

Test it.
All files in topic