heikin-ashi with 0,5% risk
Forums › ProRealTime English forum › ProOrder support › heikin-ashi with 0,5% risk
- This topic has 5 replies, 3 voices, and was last updated 4 years ago by spaanemtrading.
-
-
11/28/2019 at 2:09 PM #113852
Hi.
I am new to programming and have a ide i love to test. have tried to program it myself but i strugle with getting foult codes when trying to run back test.
I have found some codes here that i have tried to copy and paste in to my code, with no luck.
Would love to get some help wrighting the code for me, so i can play a round with it for a bit.
The ide is on heikin-ashi red /green candle trade, i have found code for it here, but i cant get it to work when i try to put in my exstra cretirials.
Hope someone will help a noobe out here:)
Here comes the cratiria for the trade one for long trades and one for short trades.
Mads
Conditions to enter Long trade.
-In DAX opning times:09:00-1730.
-Only 1 open trade at the time.
-Open limit order on level of close green candle after a red candle.
-close of green candle have to be over sma 50-100-200
-stop loss, on low of signal candle or 1 bar before depends on witch is lowest.
-risk 0,5% of capital so if capital size is 10 000E then risk is 50E per trade.
Round down on how many contracts 1E Dax to by to have the same risk level.
-When trade is 1R in profit, move stop to brake even.
-Condision to exit long trade. Place limit level on the prise of close on first red candle.
Conditions to enter short trade.
-In DAX opning times:09:00-1730.
-Only 1 open trade at the time.
-Open limit order on level of close red candle after a green candle.
-close of red candle have to be under sma 50-100-200
-stop loss, on low of signal candle or 1 bar before depends on witch is lowest.
-risk 0,5% of capital so if capital size is 10 000E then risk is 50E per trade.
Round down on how many contracts 1E Dax to by to have the same risk level.
-When trade is 1R in profit, move stop to brake even.
-Condition to exit long trade. Place limit level on the prise of close on first red candle.
11/29/2019 at 5:12 PM #113924Please do not double post.
Moreover, your second post was in the wrong support forum. I deleted it.
Thank you 🙂
11/29/2019 at 7:36 PM #113927i have found code for it here, but i cant get it to work when i try to put in my exstra cretirials.
I’m sure it would be easier if you post the code you found (on here).
Are the conditions in your original post … all of your extra criteria??
1 user thanked author for this post.
12/02/2019 at 5:34 PM #114079Here is the code that i found. it is a same code for shorting.
But i cant get the code to work. and i also want a stoplos one the low of the signal bar or the bar prior, dependig witchs is the lowest. and i want it to go to brake even when it retch 1R.
i also want a pending order on close prise of signal bar not a bay at marked order.
12345678910111213141516171819// Heikin Ashi setuponce xOpen = openxClose = (open + close + high + low) / 4if barindex > 0 thenxOpen = (xOpen + xClose[1]) / 2endifxLow = min(low,min(xClose,xOpen))xHigh = max(high,max(xClose,xOpen))//Bullish = xClose > xOpenBearish = xClose < xOpen// LONG trades when switching from bearish to bullishIF Bullish AND Bearish[1] THENBUY 1 CONTRACT AT MARKETENDIF// exit LONG trade on a Bearish candlestickIF Bearish AND LongOnMarket THENSELL AT MARKETENDIF12/02/2019 at 5:43 PM #114080>> For clarity of messages on ProRealCode’s forums, please use the “insert code PRT” button to separate the text from the code part! Thank you! << 🙂
12/02/2019 at 5:52 PM #114081Ok. I will remember that, tank you:)
-
AuthorPosts
Find exclusive trading pro-tools on