EA request Heiken Ashi

Place your new trading idea here to see if someone can automate it.
Locked
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

Re: EA request Heiken Ashi

Post by milanese »

TraderDesk wrote: Here is the actual graph. I open the EA while price was still climbing as shown on the chart. I wait for price to cross down and if price is below the HA line and I see three red boxes to be closed then on the 4th box it should open a sell position....
EAtest1.png
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
Global Prime is the official SHF broker :yahoo:
Searching for Servers and Workstations with individual configuration?
Just PM
:smile: Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
TraderDesk
Trader
Posts: 479
Joined: Wed Nov 16, 2011 2:12 pm
Location: Estonia

Re: EA request Heiken Ashi

Post by TraderDesk »

Below I would like to consider the middle of the HA boxes to be the line.
HALinedefinition.png
You do not have the required permissions to view the files attached to this post.
TraderDesk
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

Re: EA request Heiken Ashi

Post by milanese »

TraderDesk wrote:Below I would like to consider the middle of the HA boxes to be the line.
HALinedefinition.png
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
You do not have the required permissions to view the files attached to this post.
Global Prime is the official SHF broker :yahoo:
Searching for Servers and Workstations with individual configuration?
Just PM
:smile: Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
TraderDesk
Trader
Posts: 479
Joined: Wed Nov 16, 2011 2:12 pm
Location: Estonia

Re: EA request Heiken Ashi

Post by TraderDesk »

milanese wrote:
TraderDesk wrote:Below I would like to consider the middle of the HA boxes to be the line.
HALinedefinition.png
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
Awesome...Thanks for helping out. I really really appreciate the time you are taking with helping out on this strategy....
TraderDesk
TraderDesk
Trader
Posts: 479
Joined: Wed Nov 16, 2011 2:12 pm
Location: Estonia

Re: EA request Heiken Ashi

Post by TraderDesk »

milanese wrote:
TraderDesk wrote:Below I would like to consider the middle of the HA boxes to be the line.
HALinedefinition.png
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
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).
AddadditionalpositionsinTrend.png
Am I making sense here?
You do not have the required permissions to view the files attached to this post.
Last edited by TraderDesk on Fri Nov 15, 2013 1:14 pm, edited 1 time in total.
TraderDesk
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

Re: EA request Heiken Ashi

Post by milanese »

TraderDesk 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).
AddadditionalpositionsinTrend.png
Am I making sense here?
I hope I have understood it :D I will give a try to code this kind of stacking extension ;)

Cheers :)
Tommaso
Global Prime is the official SHF broker :yahoo:
Searching for Servers and Workstations with individual configuration?
Just PM
:smile: Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

Re: EA request Heiken Ashi

Post by milanese »

milanese wrote:
TraderDesk 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).
AddadditionalpositionsinTrend.png
Am I making sense here?
I hope I have understood it :D I will give a try to code this kind of stacking extension ;)

Cheers :)
Tommaso
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 :D

Cheers :)
Tommaso
You do not have the required permissions to view the files attached to this post.
Global Prime is the official SHF broker :yahoo:
Searching for Servers and Workstations with individual configuration?
Just PM
:smile: Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
TraderDesk
Trader
Posts: 479
Joined: Wed Nov 16, 2011 2:12 pm
Location: Estonia

Re: EA request Heiken Ashi

Post by TraderDesk »

milanese wrote:
milanese wrote:
TraderDesk 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).
AddadditionalpositionsinTrend.png
Am I making sense here?
I hope I have understood it :D I will give a try to code this kind of stacking extension ;)

Cheers :)
Tommaso
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 :D

Cheers :)
Tommaso
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?
TraderDesk
TraderDesk
Trader
Posts: 479
Joined: Wed Nov 16, 2011 2:12 pm
Location: Estonia

Re: EA request Heiken Ashi

Post by TraderDesk »

milanese wrote:
milanese wrote:
TraderDesk 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).
AddadditionalpositionsinTrend.png
Am I making sense here?
I hope I have understood it :D I will give a try to code this kind of stacking extension ;)

Cheers :)
Tommaso
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 :D

Cheers :)
Tommaso
I have this f.set as the config file but it is not working. Have I configured something wrong?
f.set
You do not have the required permissions to view the files attached to this post.
TraderDesk
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

Re: EA request Heiken Ashi

Post by milanese »

TraderDesk wrote:
milanese wrote:
milanese wrote:
TraderDesk 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).
AddadditionalpositionsinTrend.png
Am I making sense here?
I hope I have understood it :D I will give a try to code this kind of stacking extension ;)

Cheers :)
Tommaso
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 :D

Cheers :)
Tommaso
I have this f.set as the config file but it is not working. Have I configured something wrong?
f.set
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
Global Prime is the official SHF broker :yahoo:
Searching for Servers and Workstations with individual configuration?
Just PM
:smile: Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
Locked

Return to “Ideas for Possible Automation”