but as to my question, i have wizard a simple moving avg, enter/exit using closing and opening bar avg's, but the problem is that it buys and sells everybar. so i am wondering is this what you guys mean when you say to reset certain parameters?
such as but not limited too?:
sample one:
You may want to also reset the has_reached_percentage like this:
if(Position.MarketPosition == MarketPosition.Flat)
{
has_reached_percentage = false;
}
sample two:
In addition, can you try "resetting" your stop loss values when the strategy is flat? Something like this:
Code:
if (Position.MarketPosition == MarketPosition.Flat)
{
SetStopLoss("lo", CalculationMode.Price, 0);
}
it make no sense as to why it would place an order everybar, the ma's are not even crossing???????

Comment