sl script works buys, not sells. - page 3

 
Michael Charles Schefe #:

You should read better the formula I gave you, you didn't apply it correctly.

               step+=NormalizeDouble(.35 * 1000 / ts * tv / ltv,dig);

Should be :

               step+=NormalizeDouble(.35 * 1000 / tv * ts / ltv,dig);
 
Alain Verleyen #:

You should read better the formula I gave you, you didn't apply it correctly.

Should be :

oops. sorry.

what about tv. i have TICK_VALUE_LOSS

but should it be just TICK_VALUE?

 
Michael Charles Schefe #:

oops. sorry.

what about tv. i have TICK_VALUE_LOSS

but should it be just TICK_VALUE?

It's a complicated matter. See an extended discussion here : https://www.mql5.com/en/forum/441959

My suggestion is to stay simple and just use TICK_VALUE.

SYMBOL_TRADE_TICK_VALUE_LOSS vs SYMBOL_TRADE_TICK_VALUE_PROFIT
SYMBOL_TRADE_TICK_VALUE_LOSS vs SYMBOL_TRADE_TICK_VALUE_PROFIT
  • 2023.02.18
  • www.mql5.com
*edit: when i posted the thread, i was confused about the correct way to calculate position size based on entry price and stop loss price, so don't take anything i say here as truth, unless someone else verifies it in the comments
 
Alain Verleyen #:

It's a complicated matter. See an extended discussion here : https://www.mql5.com/en/forum/441959

My suggestion is to stay simple and just use TICK_VALUE.


thanks -- ever so much!

...yeah thats why i asked. i had read that thread and couple other with arguements both for and against using loss/profit or just value.

threads like that make the issues less clear than the original question seemed. exactly when the saying "clear as mud" is for.

thanks again. off to bed now.