Hello guys
I want to convert this indicator to strategy
If any one can help me
Buying after one bar from green crossing red line
Selling after red crossing green bar with one bar
i wrote it first as momentum reflecting indicator
when buying green line >red line i stay in the trade
when red line crosses green i exit right away
i noticed it gives good result in 10 m
declare lower;
def sun = Highest(high, 5);
def land = Lowest(low, 5);
plot up =( close / land)*100 ;
plot down =( sun/close)*100 ;
def Bull = up > 100.2;
def Bear = down > 100.2;
up.AssignValueColor(if Bull then Color.GREEN else if Bear then Color.RED else Color.GRAY);
up.SetStyle(Curve.FIRM);
down.SetStyle(Curve.FIRM);
Thanks for help
I want to convert this indicator to strategy
If any one can help me
Buying after one bar from green crossing red line
Selling after red crossing green bar with one bar
i wrote it first as momentum reflecting indicator
when buying green line >red line i stay in the trade
when red line crosses green i exit right away
i noticed it gives good result in 10 m
declare lower;
def sun = Highest(high, 5);
def land = Lowest(low, 5);
plot up =( close / land)*100 ;
plot down =( sun/close)*100 ;
def Bull = up > 100.2;
def Bear = down > 100.2;
up.AssignValueColor(if Bull then Color.GREEN else if Bear then Color.RED else Color.GRAY);
up.SetStyle(Curve.FIRM);
down.SetStyle(Curve.FIRM);
Thanks for help