invalid stops
Short = Bid + (50 * Point);
Long = Ask - (50 * Point);
spillstuff:
Trailing stop function stopped working. Still getting 130 error. I changed back as original.
Any other ideas I can try?
Rudy
I found the problem. The ea was calculating stops against all symbols.
I had to add a line to compare the symbol of the order with the symbol the ea was attached to.
Rudy
Please confirm if correct:
Sell order - stop = NormalizeDouble(Ask+Point*TrailingStop,Digits)
Buy order - stop = NormalizeDouble(Bid-Point*TrailingStop,Digits)
I am not sure why I'm getting error 130. Stops are in the ordermodify function.
Rudy