PDA

View Full Version : How to define parameters in DrawFibonacciRetracements()


pmaglio
08-28-2008, 03:05 PM
Once I have two defined pivots Low and High I want to draw some Fib Lines from there, but with the code

DrawFibonacciRetracements("WaveUP", CurrentBar-oldPL, Low[CurrentBar-oldPL], lastPH, High[lastPH]);

I get the all the standard lines, I only want some of them like I have defined as default in all my charts...

How can I change parameters (like % line values, color, thickness) ?

Thanks

NinjaTrader_Ray
08-28-2008, 03:07 PM
To clarify -

- Any time you manually draw a fib retracement, your user defined default values are used
- If you programatically draw one, it does not use this same default?

pmaglio
08-28-2008, 06:28 PM
Yes, it uses the last default defined values.
Even better, if you modify some parameters of the Fib drawn by this code, next time it redraws (using the same text tag ) it preserves your changes...
In my Indicator I use 2 ; "WaveUP" and "WaveDN" ; So once the indicator draws each one of them I change its corresponding settings and it continues this way for the next Fibs. ( It resets to defaults if I press F5 )
But , is there some way to define Fib Parameters from the code ?

NinjaTrader_Josh
08-28-2008, 11:01 PM
Unfortunately they are not settable via programming.