Fibonacci values??

 

Hi All

Need help if possible to get the price value of Fibonacci level 4, as an example in my case.

i tried using

double vSell = NormalizeDouble(ObjectGetValueByShift("SELL",OBJPROP_FIRSTLEVEL+4),Digits);

Ticket=OrderSend(Symbol(),OP_SELLSTOP,ILots,vSell,Slippage,(vSLS),TP,EAName,Magic,TimeCurrent()+PendingExpiration*Period(),Red);

getting the following errors:

2010.07.26 09:49:29 2010.07.01 01:00 Breakout_Fibo GBPUSD,H1: LB-Fibo-2010.07.01 09:00:00level: 212 description:
2010.07.26 09:49:29 2010.07.01 01:00 Breakout_Fibo GBPUSD,H1: invalid level number 211 for ObjectGetFiboDescription function
2010.07.26 09:49:29 2010.07.01 01:00 Breakout_Fibo GBPUSD,H1: invalid level number 212 for ObjectGetFiboDescription function


and these errors

2010.07.26 10:15:27 2010.07.01 10:00 Breakout_Fibo GBPUSD,H1: open #2 sell stop 0.10 GBPUSD at 0.00000 ok
2010.07.26 10:15:27 2010.07.01 10:00 Breakout_Fibo GBPUSD,H1: open #1 sell stop 0.10 GBPUSD at 0.00000 ok
2010.07.26 10:15:27 2010.07.01 10:00 Breakout_Fibo GBPUSD,H1: OrderSend error 130
2010.07.26 10:15:27 2010.07.01 10:00 Breakout_Fibo GBPUSD,H1: invalid double number as parameter 4 for OrderSend function

i am sending request for 2 pending orders, are not placed because cannot get value from Fibonacci level.
-------------------------------

i tried also

string vSell =NormalizeDouble(ObjectGetFiboDescription(objname,OBJPROP_FIRSTLEVEL+4),Digits);

getting these errors:

2010.07.26 10:29:21 2010.07.01 10:02 Breakout_Fibo GBPUSD,H1: LB-Fibo-2010.07.01 09:00:00level: 212 description: 0.00000000
2010.07.26 10:29:21 2010.07.01 10:02 Breakout_Fibo GBPUSD,H1: invalid double number as parameter 1 for NormalizeDouble function

i appreciate any help, thanks

Anthony_M

 

ObjectGetFiboDescription() returns a text string.

Convert the string to a double, StrToDouble().

Reason: