| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| EA request Heiken Ashi https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=3263 |
Page 4 of 17 |
| Author: | milanese [ Fri Nov 15, 2013 5:13 pm ] |
| Post subject: | Re: EA request Heiken Ashi |
yes without doubt it can be done, but will wait for your report about the last one.. so that we have always something first that works as intended before integrating new functions.. so bugfinding is much easier .. Cheers Tommaso |
|
| Author: | TraderDesk [ Fri Nov 15, 2013 5:19 pm ] |
| Post subject: | Re: EA request Heiken Ashi |
Hmmm... I am running it on the 1 minute charts... Do the DeltaTimeLiveTrades and DeltaTimeHistoTrades values need to be change for the 1 minute charts? |
|
| Author: | milanese [ Fri Nov 15, 2013 5:29 pm ] |
| Post subject: | Re: EA request Heiken Ashi |
yes set them to 60 or what ever you want 60 means 1 min Cheers Tommaso |
|
| Author: | TraderDesk [ Fri Nov 15, 2013 6:04 pm ] |
| Post subject: | Re: EA request Heiken Ashi |
Okay let's see if I have this understood correctly: DeltaTimeLiveTrades=60 DeltaTimeHistoTrades=60 Basically I should have those set for the timeframe I am using them in... i.e. 60 for 1 minute charts, 300 for 5 minute charts, 900 for 15 minute charts etc.... DelayTheEntryForXBars=2 That would be used for the FIRST time when Price CROSSES the HA line and will delay opening a position for 2 bars. Is that correct? DelayTheAdditionalEntryForXBars=3 This would be used once the original position was open and we would want to open another position. The value 3 would mean the EA would NOT open a position until three bars have close from the previous open position. Is that correct? PriceFromHALine=5 Now I am confused here. Does this apply to original position to be open or the additional positions that would be open once they came with 5 pips of the HA line? AddAdditionalPositionsInTrend=1 Now does this mean the EA will open ONLY 1 more position from the original position? MaxAdditionalPositions=3 I understand that this means max open positions no matter what... Safety feature. Is that correct? |
|
| Author: | milanese [ Fri Nov 15, 2013 6:11 pm ] |
| Post subject: | Re: EA request Heiken Ashi |
Ok I will try to explain a little PriceFromHALine this is used at moent for both, there is no special one for the additional trades so far.. AddAdditionalPositionsInTrend this is used to activate deactivate the additional trade function MaxAdditionalPositions here was a bug it was (n-1) that way I attach an update, this the max. for additional trades, so trade max is one higher.. DeltaTimeLiveTrades=60 DeltaTimeHistoTrades=60yes this is a kind of safety future Cheers Tommaso |
|
| Author: | TraderDesk [ Fri Nov 15, 2013 6:18 pm ] |
| Post subject: | Re: EA request Heiken Ashi |
I just had three buys on EURJPY with a minute of each other... They should not do that as I have the "DelayTheAdditionalEntryForXBars=3" set for bars to close before opening a new position... See below chart... Should it not wait three bars BEFORE opening a new additional position if conditions are met? Thanks... |
|
| Author: | TraderDesk [ Fri Nov 15, 2013 6:20 pm ] |
| Post subject: | Re: EA request Heiken Ashi |
Okay.. AddAdditionalPositionsInTrend this is used to activate deactivate the additional trade function means 1 = YES and 0= NO..... extern int DelayTheEntryForXBars=2; extern double PriceFromHALine=5; should be optional for the crossover and opening of the original position. -------------------------------------- extern int DelayTheAdditionalEntryForXBars=3; extern double PriceFromHALine=5; Must be included as the EA must open an additional position when price comes back to the HA line... Tommaso thanks for having patience as I am a trader not a coder |
|
| Author: | milanese [ Fri Nov 15, 2013 6:34 pm ] |
| Post subject: | Re: EA request Heiken Ashi |
I see the problem it is how the 3 bars are handeled in code later I will take a look Cheers:) Tommaso |
|
| Author: | milanese [ Fri Nov 15, 2013 7:00 pm ] |
| Post subject: | Re: EA request Heiken Ashi |
Ok here comes next update, now the DeltaTime Var are automatic set =TF the problem you had described should now too be resolved Cheers Tommaso |
|
| Author: | TraderDesk [ Fri Nov 15, 2013 7:09 pm ] |
| Post subject: | Re: EA request Heiken Ashi |
Okay, trying it out now... I had posted this above buy I don't know if it made sense to you... extern int DelayTheEntryForXBars=2; extern double PriceFromHALine=5; should be optional for the crossover and opening of the original position. -------------------------------------- extern int DelayTheAdditionalEntryForXBars=3; extern double PriceFromHALine=5; Must be included as the EA must open an additional position when price comes back to the HA line... |
|
| All times are UTC | Page 4 of 17 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|