
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
mandarine timefilter
hi newdigital,
I can't find mandarin with timefilter posting everywhere.
by the way, the filter 8-18 is GMT right? it should be changed to 6-16 for Alpari?
Thanks.
Fikko
Mandarine EA with timefilter.
hi newdigital,
I can't find mandarin with timefilter posting everywhere.
by the way, the filter 8-18 is GMT right? it should be changed to 6-16 for Alpari?
Thanks.
FikkoI posted it here.
I am using North Finance for testing this EA. North Finance is in GMT+3. Alpari is in GMT+2. So if we have 8 in North Finance so it will be 7 on Alpari.
For updated statements, updated weekly/total results please see this post https://www.mql5.com/en/forum/173383/page27
And in the beginning of "int start" block insert the following:
if(!(Hour()>=FromHourTrade&&Hour()<=ToHourTrade)){
Comment("Non-Trading Hours!");
return(0);
}
}I cannot locate the "int start" block in the ea??? Help
I cannot locate the "int start" block in the ea??? Help
Mandarine with timefilter is in files' thread https://www.mql5.com/en/forum/173363/page3
And to trade fixed lot size (always 1 lot or always 0.1 lot for example) you need to set FixedLot to true.
Mandarine. Without timefilter.
1. Open trades.
As I see 4 trades are open now.
In pips:
5735492 187233 2006.10.24 19:06 buy 0.70 gbpusd 1.8743 1.8783 1.8943 1.8864 0.00 0.00 121.00
5736317 187233 2006.10.24 20:00 sell 0.70 usdjpy 119.18 119.57 117.18 118.69 0.00 0.00 49.00
5735321 187233 2006.10.24 19:00 sell 0.70 usdchf 1.2658 1.2659 1.2458 1.2583 0.00 0.00 75.00 [/CODE]
In deposit currency:
5735492 187233 2006.10.24 19:06 buy 0.70 gbpusd 1.8743 1.8783 1.8943 1.8866 0.00 -7.56 861.00
5736317 187233 2006.10.24 20:00 sell 0.70 usdjpy 119.18 119.57 117.18 118.69 0.00 -30.79 288.99
5735321 187233 2006.10.24 19:00 sell 0.70 usdchf 1.2658 1.2659 1.2458 1.2582 0.00 -17.05 422.83 [/CODE]
2. Trades which was closed since this Monday (this week).
It was few trades from this Monday which was closed already.
In pips:
[CODE]5707001 187233 2006.10.20 22:00 buy 0.60 eurusd 1.2620 1.2523 1.2820 2006.10.23 05:00 1.2610 0.00 0.00 -10.00
2 5709030 187233 2006.10.23 05:00 sell 0.60 eurusd 1.2610 1.2710 1.2410 2006.10.23 07:00 1.2615 0.00 0.00 -5.00
187233 2006.10.20 18:31 buy 0.60 usdjpy 118.71 118.64 120.71 2006.10.24 20:00 119.19 0.00 0.00 48.00in deposit currency:
[CODE]187233 2006.10.20 22:00 buy 0.60 eurusd 1.2620 1.2523 1.2820 2006.10.23 05:00 1.2610 0.00 -2.22 -60.00
2 5709030 187233 2006.10.23 05:00 sell 0.60 eurusd 1.2610 1.2710 1.2410 2006.10.23 07:00 1.2615 0.00 0.00 -30.00
187233 2006.10.20 18:31 buy 0.60 usdjpy 118.71 118.64 120.71 2006.10.24 20:00 119.19 0.00 6.36 241.63So you understand the differencies the pips and deposit currency calculation.
Has anyone noticed that Mandarine makes only sell orders? I have tried out this EA and all its trades are sells. So I looked in the Journal of trades and lo and behold all BUY orders had invalid stops and were therefore not executed!
When I looked at the code for BUY in the program, sure enough there was a "+" instead of a "-" in the stoploss field shown in red below. For a BUY, stoploss MUST be below the Bid.
Is this a universal problem or just my problem. When I put minus instead of plus, there were no errors in the journal.
if(buysig && ttime!=Time[0]) {
res=OrderSend(symbol,OP_BUY,LotsRisk(StopLoss),Ask,slippage,Ask+StopLoss*Point,Ask-TakeProfit*Point,"t3",MAGICNUM,0,Red);
if (res<0) Print("Error opening BUY order : ",ErrorDescription(GetLastError()));
ttime=Time[0];
Pipsqueak2
I don't have this problem.
New Mandarine (almost)
I have been playing with the original Mandarine. I have corrected the error in the BUY orders (invalid stops) and I have introduced my own algorithm to enter positions.
I use Parabolic SAR and a long period Momentum oscillator to filter trades. Results on the "Tester" are astounding, (to me the non-programmer). See the attached results. By my standards they are much better than the negative figures I've been getting lately. Note SAR seems to work best on the larger timeframes, (noise reduced).
Cheers.
Pipsqueak2