Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 1103
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
Good afternoon) Please advise: how do I get the price of the expansion fibo level?
What's wrong with this line? I think the modifier points to the first line but the price of the first anchor point comes out...
I tried all the other modifiers and options
this is what the level description gives me in this case it's 261.8 but I wish I could get the price of this level...
Thanks for the reply,
I get the level description, in this case it's 261.8, but I'd like to get the price of the level...
Isn't it easier to calculate the required level yourself?
Depending on the value of n, your function returns 0.0 0.236 0.382 0.5 and so on. To get the initial and final price we use
Prices of other levels can be calculated using the proportion
Depending on the value of n, your function returns 0.0 0.236 0.382 0.5 and so on. To get the starting and ending prices we use
The prices of the other levels can be calculated using the proportion
Hi all!
Can you tell me why orders are not opening?
extern int MA_1=5;
extern int MA_2=20;
extern MA_3=80;
extern inttern TP=100;
extern int SL=50;
extern double Lot=0.1;
string Symb;
//+------------------------------------------------------------------+
//| Expert initialization function |
//+------------------------------------------------------------------+
int OnInit()
{
double MA_1_t;
double MA_2_t;
double MA_3_t;
int Total;
int pos;
MA_1_t=iMA(NULL,0,MA_1,0,MODE_EMA,PRICE_CLOSE,0);
MA_2_t=iMA(NULL,0,MA_2,0,MODE_EMA,PRICE_CLOSE,0);
MA_3_t=iMA(NULL,0,MA_3,0,MODE_EMA,PRICE_CLOSE,0);
Symb=Symbol();
Total=0;
for(pos=1; pos<=OrdersTotal(); pos++)
pos=OrderSelect(pos-1,MODE_TRADES);
if(pos==0)
if(MA_1_t>MA_2_t&&Open[1]<MA_1_t&&Close[1]>MA_1_t)
{
pos=OrderSend(Symbol(),OP_BUY,Lot,Ask,3,Ask-SL*Point,Ask+TP*Point, "My order",16384,0,clrGreen);
return(0);
}
if(MA_1_t<MA_2_t&&Open[1]>MA_1_t&&Close[1]<MA_1_t)
{
pos=OrderSend(Symbol(),OP_SELL,Lot,Bid,3,SL-Bid*Point,Bid-TP*Point, "My order",16384,0,clrRed);
return(0);
}
return(0);
}
pos=OrderSend(Symbol(),OP_SELL,Lot,Bid,3,SL-Bid*Point,Bid-TP*Point, "My order",16384,0,clrRed);
What does it say in the log? In ECN accounts, for example, you have to open with zero stops (SL TP) and then modify. Otherwise error 130
What does it say in the log? On ECN accounts, for example, you have to open with zero stops (SL TP) and then modify. Otherwise error 130
2016.10.11 08:52:02.646 GBPUSD,M15: 2399186 tick events (2922 bars, 2400187 bar states) processed in 0:00:15.922 (total time 0:00:25.437)
This is from the tester.
Hi all!
Can you please tell me why orders are not opening?
Init is init, trade is init. There is OnTick for EAs, there is no need to cram everything into the init...
And for inite, there are special exit codes invented by the developers, why don't you use them?