For example:
I want to set different setstoploss for two strategies in two charts in one workplace,
both setstoploss work well in backtesting and
they give the desired setstoploss in two separated strategy
Is it works in real trades? will the broker receive correct separated stoploss-order?
thank you so much
Code: Select all
//
//strategy A
condition1 = close cross over AverageFC(close,20);
if condition1 then buy ("b1") 1 contract next bar market;
setstoploss(1000);
setexitonclose;
//
//strategy B
condition2 = close cross over AverageFC(close,100);
if condition2 then buy ("B2") 1 contract next bar market;
setstoploss(3000);
setexitonclose;