Thanks a lot for your reply. Is not a problem with arguments, the calculation in the loop is correct. I think the problem is with the second call to iMAonArray outside the loop in function.
Best way to add MaxBarsToCount (History) to the limit
whan we limit MaxBarsToCount (History) sometimes it require to add Correction, etc
is the best (safest, easiest, universal) way exists?
like here we have light fisher 4 stoch smothing:
//---- check for possible errors
for (int shift = limit; shift>=0;shift--)
FishBuffer[shift]= 0.25* MathLog((1+AuxBuffer[shift])/(1-AuxBuffer[shift]))+
for fisher limit f-la:
for(int i=limit; i>=0; i--)
//---- initial zero
//---- minimums counting
p.s. in attached indicator, based on clean fisher transform and Stoch; MaxBars needs to be straighten-up a bit... (when MaxBars out - no problem)
Thanks a lot to all of you. It is working fine now and only one order per bar is opened. What is nice with an EA like this is that we can use the "Open price only" option for backtesting, which is faster than the "per tick" one.
Michel, thank for the heads-up. Wow, I didn't know that - and I'd rate that as a huge bug!!!
To check this (with MT 208), I used OrdersHistoryTotal() info. to decide trade direction on a martingaler, and used 'conventional means' on another version - the equity curve for both 'should' be identical. This is what I found.........
I have also just checked with the latest Metatrader and the bug is still there - unbelieveable.....
Need MQL Code
I need few code that I can integrate it in an EA.
1) I need to put a restriction to my EA like that, it should not open any position between 2:00 PM to 5:00 PM. How can I do that? please give me this simple code and tell where I can place it in EA.
2) I don't want to put SL in EA to open position because of SL hunting by broker. So, I need to put a check on EA that "if total profit on opened position is +20 points then close position".
I will be very thankfully to the supporters who always support other people!
PS - my reply looks misleading. I meant you cannot retrieve historical swap rates - there's no problem getting current rates...
several Orders at one time
I want to program in a Expert Advisor the following :
I would like to open several Orders at the same time (3-6 Orders )
1. Order : Volume; T/P; S/L; T/S
5. Order : Volume; T/P; S/L; T/S
Can help me ?
I need to learn something.
I need a programming help for a simple code which is:
If the market price > MA value by delta pips open buy.
If the market price < MA value by delta pips open sell.
With TP SL and TS. Can any expert programmer teach me how to write the code?
What do I need to do to change this code so the orders are only opened when all three indicators are in sync either uptrend (Blue) or downtrend (Red) manually this works well and is simple enough for me to follow LOL.
I have use an old ea as a template and tried to add the indis to create the right signals. at the moment orders are opened with either the TM or the HAS.
I have attached the ea and performance for the last couple of days I know it does not mean squat but it has potential. IMO
Could someone please point me in the right direction.
Is there a way to code this include function so there is NO chance that it will get "stuck" in it's loop?
Thanks to anyone who can help.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.