rebParticipant
Master
Hi Kenneth
you forgot the pic attched 😉
Oh.. I meant the pic. I posted earlier. But here is the same strategy just reseant update 24. october.2017
Hi Kenneth, ive tried to reach out via facebook but no response 🙂 Letting you know here just in case you havnt seen it 🙂
If you dont want private contact that is of course no problem!
I’ve been looking at the NQ, and it seems that Long trades are much more profitable then the short ones. but both should be run obviously. Have you considered doing say for example 3 contracts on long trades and 1 on short trades? Or do you have any similar money management strategies for it? 🙂
Hello Jebus
If you analyse the price of Brent,there is a strong bullish bias : Brent and WTI are in a head and shoulders pattern and the target is not reached yet.
Once the target will be reached, short trades might be more profitable ( I guess).
For me there is no reason to modify the money management (execpt if you want to stop the algorithm once the target of head and shouders is reached).
Regards
Yannick: i was thinking about the code for nasdaq 🙂 stock indicies tend to trend up in the long run
But thanks for the input!
Hi.
I have Asked before to help impliment avrage down too my exsisting brent crude 5min strategy. Dispair made one but he implimented other stuff AS ATR stop and tradingtime .
Can someone help and wright the right code for take position if price retraces 60pip in wrong direction and still keep same stoploss and trailstop settings AS first initial entry.
It would be soo much preciated.
Dear Kenneth
Try this, as what I backtested, it doesn’t seems to be a good idea
SET STOP ploss 110//76//116 er også bra
SET TARGET pPROFIT 100//54//98
DEFPARAM CumulateOrders = True
//average down
averagedownvalue=-60
//valueaveragedown=-averagedownvalue*ordersize*pipsize
if longonmarket then
posperf=close-POSITIONPRICE
endif
if shortonmarket then
posperf=positionprice-close
endif
if not onmarket then
posperf=0
endif
if longonmarket and posperf<averagedownvalue and COUNTOFLONGSHARES=Ordersize then
buy ordersize contract at market
set stop ploss (110-averagedownvalue)
SET TARGET pPROFIT (100+averagedownvalue)
endif
if shortonmarket and positionperf<averagedownvalue and COUNTOFshortSHARES=Ordersize then
sellshort ordersize contract at market
set stop ploss (110-averagedownvalue)
SET TARGET pPROFIT (100+averagedownvalue)
endif
graph(posperf)
Hi!
I havent tested it but i think you have to have a better entry for averaging down.
Maybe by for longs : -60pips and smi Cross over -45? Or somerhing like that.
Havnt got time right now but ill look into it
Regards
Henrik
There is a mistake in my previous code
SET STOP ploss 110//76//116 er også bra
SET TARGET pPROFIT 100//54//98
DEFPARAM CumulateOrders = True
//average down
averagedownvalue=-60
//valueaveragedown=-averagedownvalue*ordersize*pipsize
if longonmarket then
posperf=close-POSITIONPRICE
endif
if shortonmarket then
posperf=positionprice-close
endif
if not onmarket then
posperf=0
endif
if longonmarket and posperf<averagedownvalue and COUNTOFLONGSHARES=Ordersize then
buy ordersize contract at market
set stop ploss (110-averagedownvalue)
SET TARGET pPROFIT (100+averagedownvalue)
endif
if shortonmarket and posperf<averagedownvalue and COUNTOFshortSHARES=Ordersize then
sellshort ordersize contract at market
set stop ploss (110-averagedownvalue)
SET TARGET pPROFIT (100+averagedownvalue)
endif
graph(posperf)
Thanx yannick.
I null Try this later tonight.
Henrik, you need to look at the startegy and test IT with Sverige down before er can make any assumtions. I know for a fact this should make the strategy More profitable.
For now I have 90%win rate and alot off these trades do retrace before winning. Offcourse IT might make the risk too high but i null check out tonight.
Sorry too tell but the average down kode does not work properly.
rebParticipant
Master
Hello Kenneth
Did you continue with your code copy/paste adjusted ?
Reb
Hi
Help – start time
Example code:
LimitEntryTime = 154500
StartTime = 161500
When I enter this section of code to my script I get a SYNTAX variable error – I’m new to this, please help?
Try
LimitEntryTime = Time = 154500
StartTime = Time = 161500
Ah also I just saw the image of the syntax error … looks like you have not used LimitEntryTime and / or StartTime in your code as a condition to Open / Close a trade etc … this is what the syntax error message is telling you.