I'm learning about mql5 programming and I'm trying to make a function that identifies minimum and maximum prices and adds Fibonacci. I managed to insert fibonacci in the chart but I don't know how to customize the values after 100 and before 0 (yes, I want to put negative values!).
I tried several things but I wasn't successful because I ended up messing up the values between 0 and 100.
Can anyone tell me how to customize the values to make the projection in fibonacci?
The function I'm working on is like this now:
- How to debug a Custom Indicator
- Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6.
- [Archive!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Couldn't go anywhere without you - 2.
André Krebs:
I'm learning about mql5 programming and I'm trying to make a function that identifies minimum and maximum prices and adds Fibonacci. I managed to insert fibonacci in the chart but I don't know how to customize the values after 100 and before 0 (yes, I want to put negative values!).
I tried several things but I wasn't successful because I ended up messing up the values between 0 and 100.
Can anyone tell me how to customize the values to make the projection in fibonacci?
The function I'm working on is like this now:
this is how you create fibo with three levels: 0%, 100%, 120%
ObjectCreate(0,"FIBO",OBJ_FIBO,0,price01DateTime,price01,price02DateTime,price02); ObjectSetInteger(0,"FIBO",OBJPROP_LEVELS,3); ObjectSetDouble(0,"FIBO",OBJPROP_LEVELVALUE,0, 0); ObjectSetString(0,"FIBO",OBJPROP_LEVELTEXT,0,"0"); ObjectSetDouble(0,"FIBO",OBJPROP_LEVELVALUE,1, 1.00); ObjectSetString(0,"FIBO",OBJPROP_LEVELTEXT,1,"100"); ObjectSetDouble(0,"FIBO",OBJPROP_LEVELVALUE,2, 1.20); ObjectSetString(0,"FIBO",OBJPROP_LEVELTEXT,2,"120");
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register