Code for following strategy

HI,

I need a code of following stretegy :
this is to apply in EOD chart

Buy : buy at todays high   <----should buy tomorrow at todays high if below condition is fullfilled

if ( ( yesterdays high > todays high) and (yesterday low < todays low) )

sell : EOD (using MIS type)

eg.  yesterdays high- 100

yesterdays low- 80

todays high-95

todays high- 85

here it is fulfilling the condition --->if ( ( yesterdays high > todays high) and (yesterday low < todays low) )

then buy tomorrow at 100

As per the above condition

Buy Script:

REF(HIGH,1)>HIGH AND REF(LOW,1)>HIGH AND REF(LOW,1)<LOW

Hi, just made few changes to understand it easily. COuld you please write the code of this

1 Like