Source: https://fxcodebase.com/code/viewtopic.php?f=31&t=68549
Forum: 31 · Topic 68549 · 15 post(s)
Apprentice · Sat Jun 08, 2019 2:24 am


Based on request. viewtopic.php?f=27&t=68540 Based on the indicator. viewtopic.php?f=17&t=1966
AE Triple Screen Trading System.lua
foreveryoung · Mon Jun 10, 2019 10:44 am
Hi Apprentice
This is great with all these features, thank you so much!
I did some testing, the thing I noticed so far is the “close on opposite” function operating in a funny way.
It looks as if it takes into account the histogram value compared to null, i.e.
when long, close if
, and VICE VERSA for short.
While it should be operating as follows:
when long, close if
, and VICE VERSA for short.
Regards Nik
foreveryoung · Mon Jun 10, 2019 3:33 pm
Dear Apprentice
After more testing, and turning the “close on opposite” function off, it appears that strategy is closing the position when histogram value in long term frame crosses zero.
Regards Nik
foreveryoung · Mon Jun 10, 2019 3:49 pm
Dear Apprentice
When long, it closes position if histogram value at current bar close is > 0.
I guess it must be operating vice versa when short.
Regards Nik
Apprentice · Tue Jul 02, 2019 4:50 am
foreveryoung · Sun Mar 01, 2020 8:11 am
Dear Apprentice
I am sorry for taking so long to reply back, I have been away for a while.
Going through the forum, I have found out that automated trading has features that I did not think of, therefore, I am going to present the strategy here exactly as Alexander Elder described it.It would be great should you turn it in an automated trading system. Strategy goes as follows:
When at the end of the turn “of the lower time frame”
AND in lower time frame
, then, in lower time frame, create a long entry order at the top of the signal candle (i.e. the candle that gave force index < 0).
If order is not triggered till the end of the next turn, cancel it, and create a new long entry order at the top of this new candle. Keep doing this till an entry order is triggered or at higher time frame MACD histogram current bar < previous bar, where strategy must reverse.
If an order is triggered, wait for the end of the turn and place a stop loss at the bottom of this candle, or the previous candle (whichever is lower).
Take profit at the end of the turn in the lower time frame where Force index becomes again < 0.
OR
Take profit when in higher time frame MACD histogram current bar < previous bar
Vice versa for short.
Regards Nik
Apprentice · Sun Mar 01, 2020 4:18 pm
Your request is added to the development list. Development reference 800.
foreveryoung · Mon Mar 02, 2020 6:08 am
I would like to make clear, when using the force index for taking profit in long positions, index must first turn positive, and strategy close position once index becomes negative. Vice versa for short positions.
Regards Nik
Apprentice · Wed Mar 04, 2020 6:14 am
Aefi.lua viewtopic.php?f=17&t=1966
foreveryoung · Wed Mar 04, 2020 12:15 pm
Dear Apprentice
First of all I would like to thank you for your effort & time, it is so hassle free to have an algorithm to create the orders and the stop losses.
Created a demo account and watched strategy’s behavior. So far, I have noticed following issues:
I manage to check the Close On Opposite with short positions only, strategy closed all positions when Current Bar MACD Histogram Value > Previous Bar MACD Histogram Value, which worked exactly as it should.
Regarding AEFI calculation, can you please advise whether smoothing is prior or post calculation, and the method for the average period?
Thanks
Regards Nik
Apprentice · Fri Mar 06, 2020 7:03 am
Entry and exit logic conflicting with each other. Entry logic includes exit logic
foreveryoung · Fri Mar 06, 2020 7:50 am
Alexander Elder suggests two take profit methods. One is, when long, close position once force index in the lower time frame turns from positive negative. Should this method be coded, please include a Yes/No option in the strategy dialogue.
The second method, which makes more sense, is, when long, close position once current bar MACD histogram value < previous bar MACD histogram value, which is The Close On Opposite function.
Regards Nik
foreveryoung · Fri Mar 06, 2020 9:27 am
Dear Apprentice
Nothing changed, algorithm keeps behaving as before, i.e.
Regards Nik
Apprentice · Mon Mar 09, 2020 7:10 am
Your request is added to the development list. Development reference 845.
Apprentice · Tue Mar 10, 2020 6:26 am
Optional exit parameter added.