| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| EA request Heiken Ashi https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=3263 |
Page 12 of 17 |
| Author: | milanese [ Thu Nov 21, 2013 5:59 pm ] |
| Post subject: | Re: EA request Heiken Ashi |
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 |
|
| Author: | TraderDesk [ Thu Nov 21, 2013 6:13 pm ] |
| Post subject: | Re: EA request Heiken Ashi |
<hit my head> I should of thought of that.... My other question then is how many times will it BUY off of the 1 minute chart? Is that set by MaxAdditionalPositions=5 Thanks... |
|
| Author: | milanese [ Thu Nov 21, 2013 6:35 pm ] |
| Post subject: | Re: EA request Heiken Ashi |
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 |
|
| Author: | TraderDesk [ Mon Nov 25, 2013 9:42 am ] |
| Post subject: | Re: EA request Heiken Ashi |
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.... |
|
| Author: | milanese [ Mon Nov 25, 2013 9:53 am ] |
| Post subject: | Re: EA request Heiken Ashi |
Hi TD, sure I will take a look I think it should not be that difficult to code this Have a great week Tommaso |
|
| Author: | milanese [ Mon Nov 25, 2013 10:35 am ] |
| Post subject: | Re: EA request Heiken Ashi |
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 |
|
| Author: | TraderDesk [ Mon Nov 25, 2013 10:41 am ] |
| Post subject: | Re: EA request Heiken Ashi |
Thanks that was fast.... |
|
| Author: | TraderDesk [ Mon Nov 25, 2013 12:35 pm ] |
| Post subject: | Re: EA request Heiken Ashi |
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.... |
|
| Author: | milanese [ Mon Nov 25, 2013 12:42 pm ] |
| Post subject: | Re: EA request Heiken Ashi |
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 |
|
| Author: | TraderDesk [ Mon Nov 25, 2013 12:46 pm ] |
| Post subject: | Re: EA request Heiken Ashi |
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? |
|
| All times are UTC | Page 12 of 17 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|