- Search Forex Factory
- 38 Results
- Daniil replied Aug 18, 2016
Yes, correct. Current bar (== current day) and previous bar (for calculation raising/falling if indies) This is how non-bar0 EA is working (plano_5.mql4) "if things line up" then bar0 will open a position inside a day.
- Daniil replied Aug 18, 2016
"bar0" version of the EA is working in such manner
- Daniil replied Aug 18, 2016
When ok. At 00:00 1st tick arrived and CCI start to fall. I already wrote that "CCI direction" is a difference between current CCI value and the previous. I can't calculate direction without those 2 values. Check for Close/Open price was removed due ...
- Daniil replied Aug 17, 2016
If you paused visual tester on 23:59 and CCI is falling on your screenshot, then it is strange. For me it begin to fall from 00:00 of 25 Aug, as I said. I use Alpari demo, but will check on Admiral demo
- Daniil replied Aug 17, 2016
I think I got what you mean. I opened strategy tester on 2015.08.24 in visual mode and made a video. Until 23:59:59 CCI was rising and starting from the 1st tick of 2015.08.25 CCI began to fall. Correct? How "plano_5.mql4" make its decision: is now ...
- Daniil replied Aug 17, 2016
When we want to know if CCI raising or falling what we do? We subtract current CCI value and previous CCI value. If we get positive value => CCI rising. Negative => falling. CCI (and all other indicators) are not lines! They are dots, connected with ...
- Daniil replied Aug 17, 2016
CCI between 2 red lines is rising, right? So, CCI of yesterday is greater that CCI of the day before yesterday => we buy on the FIRST tick of new bar. image
- Daniil replied Aug 17, 2016
Here you can enable logging: image Sure. See archive with report and mt4 log: file And the EA. Nothing new except added CCI to logging function: file
- Daniil replied Aug 17, 2016
If EA made a buy then all buy conditions are met. If it sold, then sell conditions are met. EA can not be wrong in several entries and be correct in all other. Switch the logging parameter on and see the values of indicators when EA is entering ...
- Daniil replied Aug 17, 2016
All screenshots are done at 23:59:59? On the 1, 2, 3 screenshots I can't see an entry arrow. An entry of 4th screenshot is correct (if you are using EA plano_5): I see that position was opened on a current bar open at 00:00, but you took screenshot ...
- Daniil replied Aug 16, 2016
That was incorrect example about MACD, sorry I updated the EA with you suggestions in previous posts and created 2 versions: - 1st version opens positions as usual at 00:00 (when the 1st tick arrive) file - 2nd version trade on the current bar ...
- Daniil replied Aug 16, 2016
Good morning! " the position should be opened as well" -- you mean a new position should be opened? Because we already opened a position "When the new bar is just formed, if all the indicators are positive". My example: - assume now is Tuesday 00:01 ...
- Daniil replied Aug 15, 2016
Ibermex, you are talking about different things: you said that you open trades in the begging of a day and at the same time you are looking on the current bar and make decisions. W1: EA opened this position because yesterday's CCI fall and it didn't ...
- Daniil replied Aug 15, 2016
Ok. This is how the EA works Okay, I will delete it In the 1st post you wrote that CCI angle should be greater than 45 degrees. And now you are only looking if CCI is rise or fall? I use this rule "6. Stochastic red line bullish (going up)." I ...
- Daniil replied Aug 14, 2016
Hello, Ibermex. My bad. I played with 1-bar and 2-bar confirmations and accidentally uploaded version with 2-bar confirmation. Now I improved the EA and you may find new option in EA parameters -- "two_bar_confirmation": - set to false if only one ...
- Daniil replied Aug 13, 2016
Good morning, Ibermex. I have added tenkan sen and %% risk lot calculation -- I calculate lot size for every new position but sometimes I get order modify error 130 (probably lot size is too big? I didn't found a solution yet). So, I ...
- Daniil replied Aug 12, 2016
When we open position at the beginning of current day, it does not matter that colour of Heiken Ashi'es will be at the end of current day :-) You may test EA with 2 or with 1 candle but disabling "is_ha_smooth_rising(2)" and "is_ha_rising(2)" for ...
- Daniil replied Aug 12, 2016
Hello Ibermex. About missed entry on your screenshot: we should have at least 2 yellow candles that's why EA didn't open a sell on this bar. And the next bar also is not good, because angle of CCI is less that 45. Today I improved the EA with ...
- Daniil replied Aug 11, 2016
Ibermex and MasterGuru, thank you for explanation. I thought about TP, but in the 2nd screenshot I saw that 2nd deal closed with 500 pips profit (and seems that it was closed not by SL, wasn't it?). I already implemented your method of trailing stop ...
- Daniil replied Aug 11, 2016
Ok, understood now. Here is my 1st version of the EA. I tried to reproduce your 1st deal from the 2nd screenshot and got infinite position, because it never reach the SL :-) Last trailing SL was 1.3312 and EURUSD is under it from 2014 till now. So, ...