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..TraderDesk wrote:Testing it now... Will let you know how TraderDeskHeikenAshiF is working...milanese wrote:ok now finally, I had forgotten something sorry, please look as it is as you want it..milanese wrote:I hope I have understood itTraderDesk wrote: 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?I will give a try to code this kind of stacking extension
![]()
Cheers
Tommaso
Edit:I fixed some logic bug in AdditionalTrades part, now should it work, please all who had downloaded, download again![]()
Cheers
Tommaso
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?
so bugfinding is much easier ..
Cheers
Tommaso