| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| EA request Heiken Ashi https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=3263 |
Page 13 of 17 |
| Author: | milanese [ Mon Nov 25, 2013 12:51 pm ] |
| Post subject: | Re: EA request Heiken Ashi |
Ok so I will add a MainEntryOnlyWithHACross option if this set false, the bot will too entry a main trade if the HA cross on actual tf has happened in past, if the stoch options are meet.. Cheers Tommaso |
|
| Author: | milanese [ Mon Nov 25, 2013 1:15 pm ] |
| Post subject: | Re: EA request Heiken Ashi |
And so we have again a new version, with two new settings: MainEntryOnlyWithHACross=false setting this to true we have the old roules UseStochForMainEntryWOHACross=true setting this to false the bot will not use Stoch for the main entry without HA cross Cheers Tommaso |
|
| Author: | TraderDesk [ Mon Nov 25, 2013 3:37 pm ] |
| Post subject: | Re: EA request Heiken Ashi |
Tommaso, so far the last EA is working great. Now I want to have one method of placing a stop-loss. There are several methods but lets take it one step at a time. As an example I am running the EA on the 5 minute chart and it has opened several positions. Now my variable HigherTF=30 is looking at the 30 minute TF where I want to place my Stop-loss, behind the HA Line by xx(variable) amount of pips. Now I want the SL to be adjusted when the next 30 minute bar closes to be behind the HA Line by the variable xx pips. So this is a trailing stop-loss that is adjusted by the HA line on the HigherTF=30 of this example. Here is a 30 minute chart below: So the open positions are controlled by the 5 minute EA but the trailing stop-loss is controlled by the HigherTF=30 HA Line - xx pips... on a closed bar by bar basis... This is just one example... If I had HigherTF=15 then the stop-loss would be controlled by the 15 minute HA Line.... Does this make sense? Is this too complicated to put in? |
|
| Author: | milanese [ Mon Nov 25, 2013 3:44 pm ] |
| Post subject: | Re: EA request Heiken Ashi |
I will take a look later at this... Cheers Tommaso |
|
| Author: | TraderDesk [ Mon Nov 25, 2013 5:08 pm ] |
| Post subject: | Re: EA request Heiken Ashi |
Cool.... Maybe we can call the variable HigherTFHALineStoploss= Just to let you know so far the EA is doing exactly what I want it to.... Great work.... |
|
| Author: | milanese [ Mon Nov 25, 2013 5:49 pm ] |
| Post subject: | Re: EA request Heiken Ashi |
This great to hear Cheers Tommaso |
|
| Author: | milanese [ Mon Nov 25, 2013 6:10 pm ] |
| Post subject: | Re: EA request Heiken Ashi |
Ok here comes a version that sets BE and moves after the SL HigherTfHASLMovingDistance is used as min distance from the HA Line for moving the SL SetBEminPipST is the min Distance the the actual price must have from SL.. Cheers Tommaso |
|
| Author: | TraderDesk [ Mon Nov 25, 2013 6:14 pm ] |
| Post subject: | Re: EA request Heiken Ashi |
If you could do both that would be great.... |
|
| Author: | milanese [ Mon Nov 25, 2013 6:20 pm ] |
| Post subject: | Re: EA request Heiken Ashi |
I dont' know if it makes much sense for the initial SL as the distance could be very small and we could only use the HA line in some cases as SL line..., maybe an exit roule could resolve the problem that the bot will exit after a HT HA line cross in the false direction... Cheers Tommaso |
|
| Author: | TraderDesk [ Mon Nov 25, 2013 6:25 pm ] |
| Post subject: | Re: EA request Heiken Ashi |
Agree, makes sense.. |
|
| All times are UTC | Page 13 of 17 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|