EA31337 / Strategy-TMA_True

Strategy based on Triangular Moving Average (TMA) indicator.
https://www.thebalance.com/triangular-moving-average-tma-description-and-uses-1031203
1 stars 4 forks source link

TMA True Strategy just open buy positions , not sell #11

Open mavidelisi opened 1 year ago

mavidelisi commented 1 year ago

Hi Kenorb ;

when i test robot for TMA True strategy regardless timeframe , it just open buy position , not sell position.

Alpari Mt4 Version 4.00 build 1384 and M15 and H1 TMA True Strategy and H1 SAR Stop . Last version Advanced and Rider EA used.

Thanks.

kenorb commented 1 year ago

Thanks for the reporting.

Tested TMA True on M15+H1 with SAR for stop on H1 (in MT5) for this year, you're right, it opened only 3 long positions, 0 shorts.

I've checked the code used by v2.013.1 at https://github.com/EA31337/Strategy-TMA_True/blob/v1.013/Stg_TMA_True.mqh#L108-L120,

the buy position is when:

and the sell position is when:

Visually I can see there is a bug for sell position, it should have High[1], not Low.

I'll address it in the next release.

kenorb commented 1 year ago

Fixed in 98863d547bf19202c7aed4f6690a25d0f98c80f3.