KaciParticipant
Junior
Hi there,
I’m totally new in “trading” and Pro Builder so I may ask noob question here 🙂
I would need a feedback from your experience:
Fibonacci Time Zone: I’m trying to optimize my positions by exiting if they have not reached the Take Profit on time. To do that I calculate a Fibonacci target price along with a Fibonacci Time zone in which the target should be reached. However I feel I’m not doing the proper way. I have tried two different calculations:
Example 1:
// Unit: 1min
//History: 15k
// Fibonacci
t = 60
ll = Lowest[t](low)
hh = highest[t](high)
BUY 100 Lots AT MARKET
// Fibonacci
fullrange = hh - ll
fibo236 = ll + fullrange*0.236
fibo382 = ll + fullrange*0.382
fibo50 = ll + fullrange*0.5
fibo618 = ll + fullrange*0.618
fibo100 = ll + fullrange
//Reset hh and ll
hh=-1000
ll=1000
IF Close < fibo236 Then
SET TARGET PROFIT fibo236
ExitIndex = Time + t*0.382
ELSIF Close < fibo382 then
SET TARGET PROFIT fibo382
ExitIndex = Time + t*0.5
ELSIF Close < fibo50 then
SET TARGET PROFIT fibo50
ExitIndex = Time + t*0.618
ELSIF Close < fibo618 THEN
SET TARGET PROFIT fibo618
ExitIndex = Time + t
ELSE
SET TARGET PROFIT fibo100
ExitIndex = Time + 1.382*t
ENDIF
Example 2: I just switched “Time” by Tradeindex
Both provide benefits on two weeks period but I’m not sure it’s the correct way of using both Fibonacci and Fibonacci Time Zone. Indeed I can see that most of y position are closed on “Exit” so does it mean the Take Profit has been triggered ? (C.f. screen shot attached)
Night Fees: most of my positions are held on market during the night do you know if the backtest takes into account the night fees ? What is the impact ?
Thanks for your feedback.
Kaci.
KaciParticipant
Junior
Just changed the following for each target, but it the same result:
itarget = fibo382 – Tradeprice
SET TARGET pPROFIT itarget
Welcome,
Your topic is moved from French forum to English forum as you chose to use English language. Also within sub-forums topic is moved from “ProBuilder” forum (indicator codes, finishing by return line) to “ProOrder” forum (strategies and backtests, codes with buy sell set target set stop etc… keywords)
Please find all forums in the following link for future reference: https://www.prorealcode.com/forums/
Please find these rules, and other rules to follow when using these forums, in the yellow box that must be read just above the “submit” message button.
Thank you
The 0.786 ratio is missing