Hi Paul
From line 140 add the daily and weekly pivot.
With a gap between the price and the pivot
PaulParticipant
Master
Goodmorning Fifi,
nice! I found last half part of december is not so good and better not to trade.
once holiday = 1
// reset
if intradaybarindex=0 then
tradecounter=0
breakvaluelong=99999
breakvalueshort=0
tradeday=1
endif
// holiday
if holiday then
if month=12 and day>=15 then
tradeday=0
else
tradeday=1
endif
endif
Hello ,
The FIFI BarHunter-v3p-MOD-FIFI-1.itf strategy is excellent on SAF40! GOOD JOB @fifi743 for creating the virtual stop!
excellent on SAF40
I agree but the spread at 30 points on entry would knock a chunk out of the profits?
Merci Fifi pour le partage.
En effet la stratégie est tres prometteuse.
Toutefois, j’ai essayé de l’automatiser sur un compte réel mais PRT m’en empeche à cause de “remplacer variables par de valeurs fixes” et “l’instruction graph”.
Avez vous essayé de la faire tourner en réel? Si oui comment avez vous fait?
Merci
Speak English in the english forum
LINE 468 I added
RSI position closing + barindex-tradeindex
Do you know the Backtrader site ?
there are very interesting things in the articles.
@GraHal I agree with you! But I prefer to take 50% of something, rather than 100% of nothing 🙂
To go further, I have a strategy that allows me to diversify and decorrelate my strategies.
I develop strategies that are complementary and this one is little in the market, rather regular and generates gains when my other strategies are losing.
The other interesting point is that I integrated a reinvestment of earnings compared to the starting capital which allows to compensate for the penalizing spread.
Maybe you have any suggestions? 🙂
PaulParticipant
Master
Thanks for the tip. Will take a look!
Interesting but how to decorrelate strategies.
Since no strategy is connected together.
PaulParticipant
Master
always liked to close the position if possible before the weekend.
So I’ve this
once closebeforeweekend = 0
once closebeforeweekendinloss =0
once securebeforeweekendprofit=1
if closebeforeweekend then
if onmarket then
if (dayofweek=5 and hour>=22) then
sell at market
exitshort at market
endif
endif
endif
if securebeforeweekendprofit then
if (dayofweek=5 and hour>=18) then
if longonmarket then
if close>positionprice+15 then
sell at tradeprice(1)+10 stop
//else
//if hour>=22 then
//sell at market
//endif
endif
endif
if shortonmarket then
if close<positionprice-15 then
exitshort at tradeprice(1)-10 stop
else
if hour>=22 then
exitshort at market
endif
endif
endif
endif
endif
if closebeforeweekendinloss then
if (dayofweek=5 and hour>=22) then
if longonmarket then
if close<positionprice then
sell at market
endif
endif
if shortonmarket then
if close>positionprice then
exitshort at market
endif
endif
endif
endif