If(MarketPosition == 1)
{
If(High > EntryPrice + 50 * MinMove*PriceScale)
{
myExitPrice = EntryPrice + 50 * MinMove*PriceScale;
Sell(lots,myExitPrice);
}
}Else If(MarketPosition == -1)
{
If( Low < EntryPrice -50* MinMove*PriceScale)
{
myExitPrice = EntryPrice - 50* MinMove*PriceScale;
buytocover(lots,myExitPrice);
}
} |