[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. - page 286

 
sergeev:
no
Thank you, although there is a persistent urge to ask why ))))
 
I think the correct answer is patamushta.
 
sergeev:
I think the correct answer is patamushta.
Great. Even more excellent than the terminal itself )))
 

please advise !!!

how can i put the price of one of the levels of the two-way Fibonacci grid into a variable to place a pending order???

i can't figure it out

attach fibonacci grid

Files:
 
RekkeR:
Thank you, although there is a persistent urge to ask why ))))
If it's a price line and not a candlestick, no one is stopping you from throwing in a MA with a period of 1. Any colour and thickness for your money :))
 
granit77:
If it's a price line and not a candlestick, no one is stopping you from throwing in a MA with a period of 1. Any colour and thickness for your money :))

)))) Thanks.

Didn't have the wit to try a standard MA, tried to do it with a custom one, the minimum valid figure in the settings is 2, setting 1 on the real was 13.

Fell into a stupor.

Thank you.

 

To FoxUA.

When Order 3 (Sell) is closed, that Order 1 (Buy) still semaphores that it was closed on Stop Loss and so 2 orders in a row are placed, because Total=1.

 

Please don't kick me.

Night-time brain fog... (

There is a code:

int Ret[3];

int start()
{
Ret[0]=(Ask-Bid)/Point;
Print (Ret[0]," ",(Ask-Bid)/Point," ask=",Ask," bid=",Bid);
}

Result -

3 4 ask=0.973 bid=0.9726


Do I have to "normalize" again?

;)

Zy. tried it like this

int Ret[3];

int start()
{
Ret[0]=(Ask-Bid)/Point;
Print (Ret[0]," ",(Ask-Bid)/Point," ",DoubleToStr((Ask-Bid)/Point,8)," ask=",Ask," bid=",Bid);
}
2011.03.30 08:40:21 USDCAD,M1: 3 4 4.00000000 ask=0.9729 bid=0.9725
 
By default, the last zero is discarded. Set DoubleToStr() ironically.
 
Roger:
By default, the last zero is discarded. Set it to DoubleToStr().
2011.03.30 08:40:21 USDCAD,M1: 3 4 4.00000000 ask=0.9729 bid=0.9725

And pass to int via string? Or add epsilon everywhere?

;)