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:MinTPProfitInUSD=15.00000000 Is this being used?

PriceWithinHALine=10.00000000
HigherTF=30.00000000
TakeProfit=50.00000000
StopLoss=30.00000000
Use_HACrossAgainstUsExit=1
Use_SetBEAndJump=1
HigherTfHASLMovingDistance=10.00000000 How is this working?
Do the below setting work as well?

SecureProfit=4.00000000
JumpProfit=15.00000000
SetBEminPip=50.00000000
SecureProfitST=4.00000000
JumpProfitST=10.00000000
SetBEminPipST=50.00000000

What I would like is for the SL to adjust automatically behind the HA line on a timeframe that I want. For example I am running the EA on the 30 minute timeframe and when it opens a position I want the SL to be set x amount of pips behind x minute HA line. So in this case I would want the SL to be set behind the 5 minute HA line by 10 pips. So after every 5 minute bar the EA would adjust the SL by 10 pips behind the latest HA line bar.

Now I thought HigherTfHASLMovingDistance=30 would do this but I dont see it plus there should be a variable for what timeframe HA to use as well....

Can this be done?

Thanks...

Picture below as example.
stoploss.png

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
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 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
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 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
Thanks Tommaso, will start running it from this week and will let you know if I see any problems.

Have a nice weekend.... :)
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 »

as always, there was a bug in the first I uploaded :uff:
Sorry but you must redownload :D

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:as always, there was a bug in the first I uploaded :uff:
Sorry but you must redownload :D

Cheers :)

Tommaso
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....
TraderDesk
User avatar
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Re: EA request Heiken Ashi

Post by SteveHopwood »

milanese wrote:please redownload, sorry for that but I made a copy paste error
Oy, I am the expert at those. Don't you dare start making more than me. :xm:

:D
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
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:
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.

---------------------
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??
This works only for HA, Stochcrosses aren't delayed
TraderDesk wrote: 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??
same here
TraderDesk wrote: 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??
only the second one will be used if you set bot true it has same effect as only second true
TraderDesk wrote: PriceWithinHALine=10 - Now does this work with HA cross only or also with STOCH crosses??
only with HA cross
TraderDesk wrote: 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??
No conflict as EA uses it as initial SL, and will only move the SL if Profit is > SetBEminPip
TraderDesk wrote: Risk_percent=3 - Does this work if UseFixedLot=FALSE??
yes exactly
TraderDesk wrote: Use_HACrossAgainstUsExit=0 - This is used to exit positions if set to TRUE
Use_SetBEAndJump=0 Question: What is this used for?
you must set it 1 if you want the EA moving the SL in Profit
TraderDesk wrote: SecureProfit=4
JumpProfit=15
SetBEminPip=30
Question: Are these being used and if so can they be turned off by default??
These are all needed for the moving of SL
TraderDesk wrote: UseCloseFriday=0 - Self explanatory
UseReEntry=1 - Question: What does this do?
nothing is not used was from a former experimental version :D
TraderDesk wrote: ......

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? :)
I understand your questions as we have no UG (and I hate writing UG :uff: )

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: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
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,
stoploss1.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:
milanese wrote: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
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,
stoploss1.png
If the position is in profit and profit is > SetBEminPip it will move the SL.
So it is in the moment coded..

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
putusernamehere
Trader
Posts: 107
Joined: Fri Nov 15, 2013 8:56 pm

Re: EA request Heiken Ashi

Post by putusernamehere »

wow a new version is here. :yahoo: I will test these same times in the next Week. thanks for your efforts :clap:
Locked

Return to “Ideas for Possible Automation”