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:
milanese wrote:there was a bug in the stack moving SL code (used points and not pips), so here is the fixed version

Cheers :)

Tommaso

Hi Tommaso,

I have been running the EA all day to see what happens and I noticed that it seems not to be picking up additional buy/sell positions. Take a look at the two charts below and let me know if I misunderstood.
prob5minutechart.png
As you can see here the EA which is running on the 5 minute chart open the first BUY position
prob1minutechart.png
And here when Price goes below the HA Line and turns RED after 2 bars it should open a BUY position....

Or am I wrong?

Thanks.....
It is programmed only to take the stack if it is too on 5M, in your case, over the HA line and on HT in trend..
so it is correct that the bot not made this additional trade, because was under the 5M HA line..

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 »

milanese wrote:
TraderDesk wrote:
milanese wrote:there was a bug in the stack moving SL code (used points and not pips), so here is the fixed version

Cheers :)

Tommaso

Hi Tommaso,

I have been running the EA all day to see what happens and I noticed that it seems not to be picking up additional buy/sell positions. Take a look at the two charts below and let me know if I misunderstood.
prob5minutechart.png
As you can see here the EA which is running on the 5 minute chart open the first BUY position
prob1minutechart.png
And here when Price goes below the HA Line and turns RED after 2 bars it should open a BUY position....

Or am I wrong?

Thanks.....
It is programmed only to take the stack if it is too on 5M, in your case, over the HA line and on HT in trend..
so it is correct that the bot not made this additional trade, because was under the 5M HA line..

Cheers :)

Tommaso
<hit my head> I should of thought of that.... :) Your right of course....

My other question then is how many times will it BUY off of the 1 minute chart? Is that set by MaxAdditionalPositions=5

Thanks...
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:
<hit my head> I should of thought of that.... :) Your right of course....

My other question then is how many times will it BUY off of the 1 minute chart? Is that set by MaxAdditionalPositions=5

Thanks...
if the conditions for opening are meet it will buy up to 5 (but there is always the waiting time between and in each case the conditions must be meet)

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 »

milanese wrote:
TraderDesk wrote:
<hit my head> I should of thought of that.... :) Your right of course....

My other question then is how many times will it BUY off of the 1 minute chart? Is that set by MaxAdditionalPositions=5

Thanks...
if the conditions for opening are meet it will buy up to 5 (but there is always the waiting time between and in each case the conditions must be meet)

Cheers :)

Tommaso
Hi Tommaso,

I have been letting the EA on the demo for a few days. I think it is better to rollback to TraderDeskHeikenAshiU.mq4 which is without the LowerTF.

I am thinking if it possible to add a Stochastic on the EA timeframe where a cross upwards of the 40 merely has to be preceded by a close below it to trigger the trade. Steve has put together this at Steve's 10.6 trading aid EA - Stochastic H1 buy.mq4... http://www.stevehopwoodforex.com/phpBB3 ... =38&t=3273

So if I have the EA running on the 5 minute chart and HigherTF=30 then every time the stochastic drops below 40 and then cross UP the 40 line it will place a BUY order on the 5 minute chart. The reverse for SELL where the cross will be 60.

Now there should be two variables:

Stochastic should be configurable: STO - 8,3,3 or 7,22 or etc...
Levels for BUY and SELL should be configurable like 20 or 30 or 40 etc for buy or 80,70,60 etc for sell. So for buy if it is set for 20 then the stochastic level must cross first below 20 then cross up 20 closed of bar to add a buy...

Now we also need to have a variable that will say how many buys as well. Maybe we can use MaxAdditionalPositions=5 for that...

To summarize we would have the first buy open like it is setup with TraderDeskHeikenAshiU.mq4 and for new additional buy/sell positions like I describe above using the technique that Steve came up with.

I am trying to find an easier way to do this with the way I trade but it is so hard as there are so many ways to look at a trade. So I think this might just be a better way to go forward...

Let me know what you think about the code....

Thanks as always....
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: Hi Tommaso,

I have been letting the EA on the demo for a few days. I think it is better to rollback to TraderDeskHeikenAshiU.mq4 which is without the LowerTF.

I am thinking if it possible to add a Stochastic on the EA timeframe where a cross upwards of the 40 merely has to be preceded by a close below it to trigger the trade. Steve has put together this at Steve's 10.6 trading aid EA - Stochastic H1 buy.mq4... http://www.stevehopwoodforex.com/phpBB3 ... =38&t=3273

So if I have the EA running on the 5 minute chart and HigherTF=30 then every time the stochastic drops below 40 and then cross UP the 40 line it will place a BUY order on the 5 minute chart. The reverse for SELL where the cross will be 60.

Now there should be two variables:

Stochastic should be configurable: STO - 8,3,3 or 7,22 or etc...
Levels for BUY and SELL should be configurable like 20 or 30 or 40 etc for buy or 80,70,60 etc for sell. So for buy if it is set for 20 then the stochastic level must cross first below 20 then cross up 20 closed of bar to add a buy...

Now we also need to have a variable that will say how many buys as well. Maybe we can use MaxAdditionalPositions=5 for that...

To summarize we would have the first buy open like it is setup with TraderDeskHeikenAshiU.mq4 and for new additional buy/sell positions like I describe above using the technique that Steve came up with.

I am trying to find an easier way to do this with the way I trade but it is so hard as there are so many ways to look at a trade. So I think this might just be a better way to go forward...

Let me know what you think about the code....

Thanks as always....
Hi TD,

sure I will take a look I think it should not be that difficult to code this ;)

Have a great week :)

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 »

Ok here you go, we have this new inputs for Stoch:
StochTF=60(TF for Stoch)
K = 5;
D = 3;
Slowing = 3;
PriceField=1;
StochMaMethod=3;
ModeStoch=1;
StochBuyLevel=20;
StochSellLevel=80;

MaxAdditionalPositions=1 is for setting the max additional trades

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:Ok here you go, we have this new inputs for Stoch:
StochTF=60(TF for Stoch)
K = 5;
D = 3;
Slowing = 3;
PriceField=1;
StochMaMethod=3;
ModeStoch=1;
StochBuyLevel=20;
StochSellLevel=80;

MaxAdditionalPositions=1 is for setting the max additional trades

Cheers :)

Tommaso
Thanks that was fast....
TraderDesk
TraderDesk
Trader
Posts: 479
Joined: Wed Nov 16, 2011 2:12 pm
Location: Estonia

Re: EA request Heiken Ashi

Post by TraderDesk »

Using the TraderDeskHeikenAshiY.mq4 lets say I wake up in the morning and I see on the 5 minute chart Price is below the HA Line for about an hour and the 240 TF HA line is red and looks to stay red. I want to activate the EA on the 5 minute chart so that every time stochastic come down below 80 it will automatically open a sell....

As the EA is coded now will that happen? Or does it need to first wait for the initial 5 minute HA Line to turn blue and then red to open the first position?

Many times I want to get into a trend that I see is already happening and is strong so I know that the 5 minute HA Line will not switch until near the end... so catching additional positions with stochastic would be great.

Maybe there could be a variable true/false to allow that to happen?

Thanks....
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:Using the TraderDeskHeikenAshiY.mq4 lets say I wake up in the morning and I see on the 5 minute chart Price is below the HA Line for about an hour and the 240 TF HA line is red and looks to stay red. I want to activate the EA on the 5 minute chart so that every time stochastic come down below 80 it will automatically open a sell....

As the EA is coded now will that happen? Or does it need to first wait for the initial 5 minute HA Line to turn blue and then red to open the first position?

Many times I want to get into a trend that I see is already happening and is strong so I know that the 5 minute HA Line will not switch until near the end... so catching additional positions with stochastic would be great.

Maybe there could be a variable true/false to allow that to happen?

Thanks....
I will add this to the code, at the moment the stoch is only used for additional entries, so if I understand you right you want a second main entry option that makes an main entry too, like the roule for the additional entry?

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 »

milanese wrote:
TraderDesk wrote:Using the TraderDeskHeikenAshiY.mq4 lets say I wake up in the morning and I see on the 5 minute chart Price is below the HA Line for about an hour and the 240 TF HA line is red and looks to stay red. I want to activate the EA on the 5 minute chart so that every time stochastic come down below 80 it will automatically open a sell....

As the EA is coded now will that happen? Or does it need to first wait for the initial 5 minute HA Line to turn blue and then red to open the first position?

Many times I want to get into a trend that I see is already happening and is strong so I know that the 5 minute HA Line will not switch until near the end... so catching additional positions with stochastic would be great.

Maybe there could be a variable true/false to allow that to happen?

Thanks....
I will add this to the code, at the moment the stoch is only used for additional entries, so if I understand you right you want a second main entry option that makes an main entry too, like the roule for the additional entry?

Cheers :)

Tommaso
The main entry should stay the same. But if I miss that entry when I go to put the EA on the 5 minute chart for example I do not want to wait for another main entry point to happen again because I could lose the whole uptrend/downtrend move if it is very strong.

I just want a way to allow me to get into the move with just the stochastic method of additional buy/sells since the conditions for the main entry have already been realized...

Does that make sense?
TraderDesk
Locked

Return to “Ideas for Possible Automation”