Thanks, Thom. I will forward test them as is and keep you posted.
- exit on crossing of SignalEMA and CloseEMA;
and (not or)
- exit on Stop Loss, take Profit and ts (if StopLossMode = True, TakeProfitMode = True, TrailingStopMode = True).
What does it mean?
It means that if you set TrailingStopMode = True so EA will close the orders accoding to crossing and Trailing Stop as well (Stop loss value will be moving).
Exit of crossing is always "True". But if you set "TrailingStopMode = True" for example so you will have additional possibility for exit.
And StopLossMode, TakeProfitMode and TrailingStopMode are working separatedly from each other. For example EA will use trailing stop anyway even if you have the following settings:
TrailingStopMode = True;
TakeProfitMode = False;
StopLossMode = False.
In this settings EA will use exit on crossing instead of stop loss and will use trailing stop as well.
Any other combination is valid as well.
Thanks ND. I will make those setting adjustments.
As to Delta so look at the code:
Look at the image attached illustrating this Delta:
In your chart, what constitutes non-trading zone?
As I am not really sure that we need at least one of it so I set the value of Delta1 and Delta2 to 0.
I presume we are still using the same presets as before, am I correct? According to your chart, the EMAs are different from the presets, which one should I be using?
I posted the chart with 8, 21 and 55 for more better visuality (visualization ... sorry). For this perpose only. Just to explain.
=====this next bit is a post script... And a question on the secondary entry signal
If you are asking aout second entry condition so if I remember the code it is the following:
- It is if SignalEMA is above (MainEMA + Delta1).
Simple buy condition generally.
- If SignalEMA is above or equal (CloseEMA +Delta2).
Condition for re-entry.
If we don't need thisd Delta so simple set Delta1 and Delta2 to zero (0) in the settings of EA (version 2).
So the second condition is both of them (SignalEMA is above MainEMA and SignalEMA is equal or above CloseMA).
Second condition is not crossing.
I may code the second condition to be optional as "false" or "true" for example. If it is necessary.
For example (the settings of EA - version #2:
(the first condition is working only).
(both second and first condition are working all together).
It may be 3rd and 4th condition as optional as well (we do not have 3rd and 4th but just in case if we will develop it). For example if we decide to add some filter (indicator) or any.
I was kind of bummed when after closing that nice GbpUsd sell, the EA, within one candle of the close opened another sell order. I closed the order imedeately as i didn't want this one around as even though the signal MA was in fact below the "Close" MA the signal had not met my requirement of going on the other side of the Close and then turned back over it once again in the direction of the trade. I figure if the trailing stop loss got me out in profit, there was a reason for that exit. Why would i wish to re-enter unless there was more criteria met. I'm not stating that my "criteria" is without fault, but visualy there seems to be some merit in the thought.
This is a very nice EA. I'm going to continue doodling.
: ) Thom
Can you explain how DELTA is used? I am not familiar with it.... I guess it means that the SignalEMA must cross both the MainEMA and the Delta line or is that accounted for on the cross when Delta is specified? I guess it prevents being on the wrong side of the trade, that is, being whipsawed.
Re Delta indicator
Hi New Digital
Could I just check the following with you:
1) which Delta indicator are you using? I tried the one from the AscTrend system, but it has the title of SmWPR at the top of the code It seems to look different from the one in your charts Also one which charts a histogram
2) Are you using the default settings for both EAs ?
3) What would be the difference between the 2 EAs in newbie language, please?
Thanx so much for all your wonderful contributions