Download MetaTrader 5
To add comments, please log in or register
You sell neither signals nor apps? No problem, everyone can make profit!
Dionisio
10
Dionisio 2014.12.19 07:59 

Hi There,

 

My name is Danny and I am trying to finish up a report for my college studies. We are trying to test few theories on trend following and we created an EA using the attached indicator. Indicator is re-painting but this is not relevant for our study. We are using a demo account to test indicators and EAs and plot results.

Problem is that we were expecting to see multiple positions opened in the same directions as the indicator will give more entry/exit points as long as new bars are generated with new Highs/Lows. Our EA do not open second position though. 

From picture below position was open at first vertical red line because the indicator produced entry signal. Few minutes later new low was plotted and signal entry was repainted on right side (second vertical red line) but our EA did not open new buy position.

We need our EA to  open positions every time an entry/exit signal is plotted in the chart even if the signal get later moved by new highs/lows. 

Any suggestion will be much appreciated? 

Thanks,

Danny 

EA image

Files:
eafdt.mq4 109 kb
whroeder1
13644
whroeder1 2014.12.19 13:50  
dd_dogmoney: Indicator is re-painting but this is not relevant for our study.
  1. //| This MT4 Expert Advisor is generated By EATree Version 2.0, 
    1. We hate EA builder
    2. You couldn't be bothered to learn mql4, therefor there is no common language for us to communicate.
    3. There are only two choices: learn to code it, or pay someone. We're not going to code it FOR you. We are willing to HELP you when you post your attempt (using SRC) and the nature of your problem, but we are not going to debug your 2516 lines of code.
    4. EA builder makes bad code counting up while closing multiple orders.
    5. EA builder makes bad code Bars is unreliable (max bars on chart) volume is unreliable (miss ticks) Always use time
    6. EA builder makes bad code Not adjusting for 4/5 digit brokers
    7. EA builder makes bad code not adjusting for ECN brokers.
    8. EA builder makes bad code not checking return codes.
    9. EATree uses objects on chart to save values - not persistent storage (files or GV+Flush.) No recovery (crash/reboot.)
    EATree looks better in #5, #6, and #8. #4 is N/A (one order only.) #9 is bad

  2. void UseMartinMultiplier(double &p_lot) {
    Martingale, sure way to blow your account.
  3. Re-painting is exactly your problem. The arrow doesn't appear on bar one which is what your EA only looks at.
    // Box: 'iCustom_1'
    iCustom_1_O1 = iCustom(NULL, 0, "Dynasty Trader", iCustom_1_SignalGap , iCustom_1_ShowBars , 0, 1);
    iCustom_1_O3 = iCustom(NULL, 0, "Dynasty Trader", iCustom_1_SignalGap , iCustom_1_ShowBars , 2, 1);

Dionisio
10
Dionisio 2014.12.22 00:36  
WHRoeder:
    1. We hate EA builder
    2. You couldn't be bothered to learn mql4, therefor there is no common language for us to communicate.
    3. There are only two choices: learn to code it, or pay someone. We're not going to code it FOR you. We are willing to HELP you when you post your attempt (using SRC) and the nature of your problem, but we are not going to debug your 2516 lines of code.
    4. EA builder makes bad code counting up while closing multiple orders.
    5. EA builder makes bad code Bars is unreliable (max bars on chart) volume is unreliable (miss ticks) Always use time
    6. EA builder makes bad code Not adjusting for 4/5 digit brokers
    7. EA builder makes bad code not adjusting for ECN brokers.
    8. EA builder makes bad code not checking return codes.
    9. EATree uses objects on chart to save values - not persistent storage (files or GV+Flush.) No recovery (crash/reboot.)
    EATree looks better in #5, #6, and #8. #4 is N/A (one order only.) #9 is bad

  1. Martingale, sure way to blow your account.
  2. Re-painting is exactly your problem. The arrow doesn't appear on bar one which is what your EA only looks at.
    // Box: 'iCustom_1'
    iCustom_1_O1 = iCustom(NULL, 0, "Dynasty Trader", iCustom_1_SignalGap , iCustom_1_ShowBars , 0, 1);
    iCustom_1_O3 = iCustom(NULL, 0, "Dynasty Trader", iCustom_1_SignalGap , iCustom_1_ShowBars , 2, 1);

Hi WHRoeder,

please be patient with us we are just a group of students trying to get a decent grade. We are kinda familiar with coding and we are not trying to discover the holy grail. We want the attached EA to open positions even when the entry signal is moving along new bars been created. The attached EA open a first BUY at the first red line, then new bars showed a new LOW which moved the green arrow to the right but the EA did not open a new BUY position.

We have tried to attached the EA using SRC but it is too long. We have also tried to modify the EA but no luck. That is why we reverted to this forum of experts hoping for some clarity.

You do not have to look at all the 2516 lines but if you are able to give few advises on how to fix the issue it will be very appreciated.

Also we would like to hear more details about your hate of EA.

Thanks,

 D 

whroeder1
13644
whroeder1 2014.12.22 02:31  
dd_dogmoney: but if you are able to give few advises on how to fix the issue it will be very appreciated.
  1. What part of
    Re-painting is exactly your problem. The arrow doesn't appear on bar one which is what your EA only looks at.
    was unclear?
  2. Either you have to look at multiple bars, or stop looking at repainting indicator.
Dionisio
10
Dionisio 2014.12.23 08:47  
WHRoeder:
dd_dogmoney: but if you are able to give few advises on how to fix the issue it will be very appreciated.
  1. What part of
    Re-painting is exactly your problem. The arrow doesn't appear on bar one which is what your EA only looks at.
    was unclear?
  2. Either you have to look at multiple bars, or stop looking at repainting indicator.

Hi There,

Indi shows an arrow every time bar has new highest high or lowest low. Doing this, arrow appears when new target is hit but then is moved if new high/low is reached few bars later. We know indi looked at bar 1, previous closed bar, for calcs.

How do we get the EA to constantly look for arrow (entry/exit signal) even after position has already been open? What about looking at multiple bars as you suggested?

Thanks,

/
To add comments, please log in or register