Code to get Date of Previous Monthly High

#2
Code:
PMH = TimeFrameGetPrice("H",inMonthly,-1,expandLast);
PML = TimeFrameGetPrice("L",inMonthly,-1,expandLast);
Filter = 1;
AddColumn(PMH,"P Month High");
AddColumn(PML,"P Month Low");



This will give you values and not the dates



.
 
Last edited:

ajeetsingh

Well-Known Member
#3
I have very less knowledge of coding
so just a suggestion,
Give a try to function "Valuewhen" and apply to "datenum", when you already get high of prev. month
 

Similar threads

Broker Special Offers

Intraday Higher Leverage

Save up to 90% in brokerage and get higher leverage for intraday trades.

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