@nonetheless in post #132840 you refer to the “original” v4.5, I can´t figure out what version that is? Doesn´t seem to exist as itf, can you help me? Gets a bit confusing sometimes when you´re new to PRT and ideas and versions are updated constantly in the forum… But very interesting to follow the progress from those how know what they are doing!
Click on ‘View all attachments’ at the top of this forum page and you get a list of all attachments. Look for ITF files in the list. Having said that I checked this topic and could not find any v4.5 listed so perhaps it was never posted as an attachment.
you refer to the “original” v4.5, I can´t figure out what version that is?
It appears that Nonetheless did as below from v 4.2 and there isn’t a V4.5.
v4.2 is in the Attachment List.
I found below below by googling ‘ProRealCode Dragon V4.5‘
Very minor changes. I only changed the version number for my own purposes. Performance is near identical.
@OboeOpt – here you go. Very minor changes from the previous so I didn’t bother posting it. Best of luck.
@GraHal – you got in just before me! thanks
Hi,
@nonetheless, I added a mechanism to close faster if trend is almost confirming to hit the SL, e.g. if short, but trend supported by MA20. It limits a little bit of the average loss. I attached the .itf if it makes sense.
Good morning,
You can do much better
You can do much better
Salut Fifi, what do you suggest? I’d love to hear it 🤔
//=============== ajouter fermeture des positions rsi et barindex-tradeindex =====
if afprsi then
myrsi=rsi[15](close)
//34
if myrsi<47 and barindex-tradeindex>3 and longonmarket and close>positionprice then
sell at market
endif
if myrsi>69 and barindex-tradeindex>1 and shortonmarket and close<positionprice then
exitshort at market
endif
endif
// =================== forme de bougie doji ====================
if bougiedoji then
if longonmarket and abs(open-close)<1 and high[1]<high and close>positionprice and high-close>18 then
sell at market
endif
if shortonmarket and abs(open-close)<1 and low[1]<low and close<positionprice then
exitshort at market
endif
endif
Hi,
You adapt this code + small adjustment and hop
What kind of “small adjustments”? This could be implemented also on DOW version?
Can you share the full code?
Hello, Francesco,
Yes, I’ll share,
Yes, it is applicable to any version by adjusting the values.
But you have to understand the code.
I’ve added to line 120 and 130
//conditions buy
dhigh(0)-high<250
//condition sell
low-dlow(0)<700
And at the end of the algo
//************************************************************************
IF longonmarket and barindex-tradeindex>1800 and close<positionprice then
sell at market
endif
IF shortonmarket and barindex-tradeindex>930 and close>positionprice then
exitshort at market
endif
//=============================================
if longonmarket and abs(open-close)<1 and high[1]>high and close>positionprice and high-close>10then
sell at market
endif
if shortonmarket and abs(open-close)<1 and low[1]>low and close-low>13 and close<positionprice then
exitshort at market
endif
//===================================
myrsiM5=rsi[14](close)
//
if myrsiM5<30 and barindex-tradeindex>1 and longonmarket and close>positionprice then
sell at market
endif
if myrsi>70 and barindex-tradeindex>1 and shortonmarket and close<positionprice then
exitshort at market
endif
and change parameters
I always prefer understanding the code instead of having it served.
I was just thinking on that “small adjustments”.
I’ll go for myself to implement with this last input and let you know 🙂