| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| EA request Heiken Ashi https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=3263 |
Page 16 of 17 |
| Author: | milanese [ Sat Dec 14, 2013 7:30 pm ] |
| Post subject: | Re: EA request Heiken Ashi |
Hi TD, the MinTPProfitInUSD is so far only used if you too use CSS for the entry, as it will close a position with more profit as MinTPProfitInUSD if the CSS goes against the open trade(s). The HigherTfHASLMovingDistance moves the SL depending from the higher tf you have choosen, with the distance you have set. About your request, I will take a look how we can realize it. Cheers Tommaso |
|
| Author: | milanese [ Sat Dec 14, 2013 8:44 pm ] |
| Post subject: | Re: EA request Heiken Ashi |
Ok here comes a new version: MovingSL_TF here you set the HA TF for the moving SL HA_SLMovingDistance here you sent the distance from the HA for moving the SL SetBEminPip is min distance from SL to actual price (with "ST" at end for the StackTrades) Cheers Tommaso Now bugfixed |
|
| Author: | TraderDesk [ Sat Dec 14, 2013 8:51 pm ] |
| Post subject: | Re: EA request Heiken Ashi |
Thanks Tommaso, will start running it from this week and will let you know if I see any problems. Have a nice weekend.... |
|
| Author: | milanese [ Sat Dec 14, 2013 9:05 pm ] |
| Post subject: | Re: EA request Heiken Ashi |
as always, there was a bug in the first I uploaded Sorry but you must redownload Cheers Tommaso |
|
| Author: | TraderDesk [ Sun Dec 15, 2013 8:49 am ] |
| Post subject: | Re: EA request Heiken Ashi |
Good morning, I downloaded the corrected version. Now as there are a lot of settings both legacy and what we have put together I just want to go through them to make sure that there are no strange conflicts... I will take it group by group of settings to go through. ---------------- MagicNumber=444 slippage=1 AdvertisedSpread=5.00000000 UseFixedLot=1 FixedLot=0.50000000 StackLot=0.30000000 Okay these are self explanatory so no problem --------------------- MinTPProfitInUSD=15.00000000 -As you explain this is used by CSS which by default is set to false UseHT=1 - This is used to look at a higher TF trend to open positions when HA is same trend as lower TF where the EA is running DelayTheEntryForXBars=2 - To open initial position wait two bars. Question: is this only for HA Cross or will this work with Stoch crosses as well?? DelayFromLastEntryForXBars=2 - To open additional positions wait two bars. Question: is this only for HA Cross or will this work with Stoch crosses as well?? MainEntryOnlyWithHACross=0 - Will open initial position with HA cross if TRUE UseStochForMainEntryWOHACross=1 Will open initial position with Stoch cross if TRUE Question: What happens if both are set to TRUE?? -------------------------------- sto=--Stochastic inputs-- StochTF=60 K=7 D=2 Slowing=2 pf=0=Low/High; 1=Close/Close PriceField=1 mam=0=Simple: 1=Exp: 2=Smooth{ 3=Linear StochMaMethod=2 sti=Mode: 0 = Main: 1 = Signal ModeStoch=0 StochBuyLevel=20 StochSellLevel=80 These are all self explanatory --------------------------------- PriceWithinHALine=10 - Now does this work with HA cross only or also with STOCH crosses?? HigherTF=30 - This sets the TF which when UseHT=TRUE will work. TakeProfit=300 StopLoss=75 - If we are using the HA_SLMovingDistance does this variable work or conflict?? Risk_percent=3 - Does this work if UseFixedLot=FALSE?? --------------------- MaMetod=2 MaPeriod=20 MaMetod2=3 MaPeriod2=3 These are all self explanatory ---------------------- Use_HACrossAgainstUsExit=0 - This is used to exit positions if set to TRUE Use_SetBEAndJump=0 Question: What is this used for? HA_SLMovingDistance=10 This is to set how far away from the HA line to set the moving SL MovingSL_TF=5 This is the TF HA line that HA_SLMovingDistance= will be using. ------------------------------------ SecureProfit=4 JumpProfit=15 SetBEminPip=30 Question: Are these being used and if so can they be turned off by default?? ---------------------------- SecureProfitST=4 - ??? JumpProfitST=10 - ??? SetBEminPipST=30 - Does this mean when ST is 30 pips it will bring SL to BE?? Question: Are these being used and if so can they be turned off by default?? ----------------------------- UseCloseFriday=0 - Self explanatory UseReEntry=1 - Question: What does this do? AddAdditionalPositionsInTrend=1 - Will reenter additional positions if set to TRUE MaxAdditionalPositions=3 Self explanatory Is there a way to group them accordingly to what they do a little better? I am not a coder but I can move the extern variables around if that is how it work? Thanks for any input.... |
|
| Author: | SteveHopwood [ Sun Dec 15, 2013 10:50 am ] |
| Post subject: | Re: EA request Heiken Ashi |
Oy, I am the expert at those. Don't you dare start making more than me. |
|
| Author: | milanese [ Sun Dec 15, 2013 11:05 am ] |
| Post subject: | Re: EA request Heiken Ashi |
This works only for HA, Stochcrosses aren't delayed same here only the second one will be used if you set bot true it has same effect as only second true only with HA cross No conflict as EA uses it as initial SL, and will only move the SL if Profit is > SetBEminPip yes exactly you must set it 1 if you want the EA moving the SL in Profit These are all needed for the moving of SL nothing is not used was from a former experimental version I understand your questions as we have no UG (and I hate writing UG Cheers Tommaso |
|
| Author: | TraderDesk [ Sun Dec 15, 2013 6:28 pm ] |
| Post subject: | Re: EA request Heiken Ashi |
Hi Tommaso, I just want to make sure that we are on the same page so I have a picture below that by using the above two variables HA_SLMovingDistance and MovingSL_TF we will have a moving SL that is recalculated after every bar close and is set accordingly. So in the below example for each bar the SL is 10 pips behind the HA and when the bar closes HA line has moved down a few pips so the SL moves a few pips as well maintaining the 10 pip distance from the HA line. Is this correct? Sorry to ask but I just want to make sure that I am expressing myself correctly... Thanks a lot, |
|
| Author: | milanese [ Sun Dec 15, 2013 6:32 pm ] |
| Post subject: | Re: EA request Heiken Ashi |
If the position is in profit and profit is > SetBEminPip it will move the SL. So it is in the moment coded.. Cheers Tommaso |
|
| Author: | putusernamehere [ Sun Dec 15, 2013 7:44 pm ] |
| Post subject: | Re: EA request Heiken Ashi |
wow a new version is here. |
|
| All times are UTC | Page 16 of 17 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|