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.