| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| EA request Heiken Ashi https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=3263 |
Page 3 of 17 |
| Author: | milanese [ Fri Nov 15, 2013 12:11 pm ] |
| Post subject: | Re: EA request Heiken Ashi |
it is the green bar after the cross that that caused this version not to open, I look to update as you want it to do.. Cheers Tommaso |
|
| Author: | TraderDesk [ Fri Nov 15, 2013 12:12 pm ] |
| Post subject: | Re: EA request Heiken Ashi |
Below I would like to consider the middle of the HA boxes to be the line. |
|
| Author: | milanese [ Fri Nov 15, 2013 12:30 pm ] |
| Post subject: | Re: EA request Heiken Ashi |
ok try if this one is as you intended, the C version needed x red bars after cross for open short, this one should open too if we have greenbar in the series..and I changed the var names as you wanted.. Cheers Tommaso |
|
| Author: | TraderDesk [ Fri Nov 15, 2013 12:33 pm ] |
| Post subject: | Re: EA request Heiken Ashi |
Awesome...Thanks for helping out. I really really appreciate the time you are taking with helping out on this strategy.... |
|
| Author: | TraderDesk [ Fri Nov 15, 2013 1:03 pm ] |
| Post subject: | Re: EA request Heiken Ashi |
Tommaso, I have it working now based on the bars. Good so far. I will post more functionality that will be needed later for this function. Now I have below the function "Add additional positions in Trend". This is to be used once the first position is taking with the previous function. The below function will be to add additional positions as needed in the trend as long as price does not close above the HA line... I have added three configurations: 1. Amount of pips to be in proximity of HA line 2. Wait X amount of bars before opening another position 3. Max Amount of open positions allow concurrently This will allow a position to be opened up once price comes within x amount of pips to HA line. So for example Price cross down the HA line and a new position opened up after 2 bars closed. That occurs from the first function. Now I would use the second function (Amount of pips to be in proximity of HA line) to configure wait (DelayAddOpenPositionForXBars) X bars to close from last buy/sell position before opening an additional position AND if Price is with X amount of pips of HA line AND maximum amount of positions currently open does NOT exceed X amount (MaxAmountPositions). Am I making sense here? |
|
| Author: | milanese [ Fri Nov 15, 2013 1:10 pm ] |
| Post subject: | Re: EA request Heiken Ashi |
I hope I have understood it Cheers Tommaso |
|
| Author: | milanese [ Fri Nov 15, 2013 2:02 pm ] |
| Post subject: | Re: EA request Heiken Ashi |
ok now finally, I had forgotten something sorry, please look as it is as you want it.. Edit:I fixed some logic bug in AdditionalTrades part, now should it work, please all who had downloaded, download again Cheers Tommaso |
|
| Author: | TraderDesk [ Fri Nov 15, 2013 4:28 pm ] |
| Post subject: | Re: EA request Heiken Ashi |
Testing it now... Will let you know how TraderDeskHeikenAshiF is working... Now I have another feature to look at. Is it possible to have the EA look at a higher time-frame to determine if it will open the first position? For example, I open the EA on the 15 minute time-frame. I look at the 4 hour time-frame and I see price is above the HA line so the EA will open only buy positions... If the price on the 4 hour time-frame is below the HA line then it will open only sell position on the 15 minute EA... This is to keep the EA opening positions ONLY in the direction of the 4 hour time-frame... Now I would like to see if would allow us to have this configurable to whatever time-frame we want. If I want to open the EA on the 5 minute chart, I would like to be able the EA to look at the 15 or 30 or 1 hour or 4 hour or daily HA line to determine the larger trend... Would this be possible? |
|
| Author: | TraderDesk [ Fri Nov 15, 2013 5:03 pm ] |
| Post subject: | Re: EA request Heiken Ashi |
I have this f.set as the config file but it is not working. Have I configured something wrong? |
|
| Author: | milanese [ Fri Nov 15, 2013 5:11 pm ] |
| Post subject: | Re: EA request Heiken Ashi |
depending on time frame you must adjust the DeltaTimeLiveTrades and DeltaTimeHistoTrades values, this values are in seconds, at moment it makes a stop trading after opening a trade for 4 h and after closing Cheers Tommaso |
|
| All times are UTC | Page 3 of 17 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|