input:nbar(.50),barago(0),stopn(100);
var:insidehigh(false),insidelow(false),bullish(false),bearish(false),rangen(false),stop1(false),insideday(false),buyme(false),good(false);
{entries}
insidehigh=high[1]>high ;
insidelow=low[1]<low;
insideday= insidehigh and insidelow;{you can have more than one true false statment as variable!!! yeah!!}
bullish=close>close[1];
bearish=close<close[1];
rangen=range[barago]>=nbar;
good=open>low[1];
{sell stops}
stop1=low<=low[1];
buyme=insideday and bullish and good;
if buyme then buy next bar on market;{I want to buy 1 bar before because this also buys on next bar how would i write buy 1 bar before?? this occurence}
if stop1 then sell this bar;{arr I want to sell on this bar after event occurs not on next bar!!!}
var:insidehigh(false),insidelow(false),bullish(false),bearish(false),rangen(false),stop1(false),insideday(false),buyme(false),good(false);
{entries}
insidehigh=high[1]>high ;
insidelow=low[1]<low;
insideday= insidehigh and insidelow;{you can have more than one true false statment as variable!!! yeah!!}
bullish=close>close[1];
bearish=close<close[1];
rangen=range[barago]>=nbar;
good=open>low[1];
{sell stops}
stop1=low<=low[1];
buyme=insideday and bullish and good;
if buyme then buy next bar on market;{I want to buy 1 bar before because this also buys on next bar how would i write buy 1 bar before?? this occurence}
if stop1 then sell this bar;{arr I want to sell on this bar after event occurs not on next bar!!!}