Simple Coding Help - No Promise.

The time stamp of the selected candle would be great.
Try this

Code:
_SECTION_BEGIN("Show TimeStamp");
GfxSetBkMode(2);
GfxSetBkColor( colorBlack);
GfxSelectFont("Comic Sans MS",18,600);        // Font and Size
GfxSetTextColor(colorWhite);
TS = NumToStr(Hour(),2.0) + ":" + NumToStr(Minute(),2.0) + ":" + NumToStr(Second(),1.0);
GfxDrawText(TS,Param("X",500,0,2000,10),Param("Y",20,0,1000,10),2000,1000,0);
//GfxDrawText(Date(),Param("A",335,0,2000,10),Param("B",50,0,1000,10),2000,1000,0);
_SECTION_END();
Change color, font size location as per your need

Last line will print date n time, un-comment it if you also want date
.
 
Hi. Josh sir in order to circumvent the issue of repainting what i do is i keep only one side of the Pivot on the charts. For example if the faster ema (9) is below the slower ema (20) then only the pivot high that was made when 9 was above 20 is plotted. Vice versa for 9 above 20. This acts as a great Trailing mechanism. To achieve this one has to count the number of bars the condition is in place (like 9 above 20) and once this condition reverses then calculate the HHV for those number of bars and to plot it. This way you will get only 1 line which would not be repainted. Similarly LLV may be calculated for the no. of bars it remains below 20 for the lower line.
 
this line to be plotted only when the signal reverses. So the top line plotted when we get a sell signal and the bottom line plotted when we get a buy signal. This would effectively become your sl/tsl
 
Try this

Code:
_SECTION_BEGIN("Show TimeStamp");
GfxSetBkMode(2);
GfxSetBkColor( colorBlack);
GfxSelectFont("Comic Sans MS",18,600);        // Font and Size
GfxSetTextColor(colorWhite);
TS = NumToStr(Hour(),2.0) + ":" + NumToStr(Minute(),2.0) + ":" + NumToStr(Second(),1.0);
GfxDrawText(TS,Param("X",500,0,2000,10),Param("Y",20,0,1000,10),2000,1000,0);
//GfxDrawText(Date(),Param("A",335,0,2000,10),Param("B",50,0,1000,10),2000,1000,0);
_SECTION_END();
Change color, font size location as per your need

Last line will print date n time, un-comment it if you also want date
.
Thank you so much Happy bhai!!

I will check this out. Date is not necessary. It is just the time stamp I am worried about. :)
 
I am very happy to report that this works well. Please see the attached image.

Thank you so much again. This has been such a great help :)

Happy Time AFL Pic.png
 

Similar threads

Zerodha – Open Paperless Account

Open online account with Zerodha. Free delivery trading and Max Rs 20 for Intraday, F&O, Currency and Commodity Trading. Intraday High leverage with MIS, CO and BO.

Name:Phone:
Email:City:
State:
Are you a day trader?