[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 409
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
Вход по пробитию фрактала, RSI на покупку выше 50, на продажу ниже 50, S/L 20 п., трейлинг стоп 15 п.
Протестировать бы на истории, я не умею.
Try it, if there is something wrong write to me >>
Colleagues, why might this problem arise?
the condition to open a position is fulfilled, but the position is not opened...
if ( ((MathRound(iCustom(NULL, 0,"ind1",2,0))==1)&&(ind2()==1) )
{
if ( buy_order_open==0 )
{
Alert("Время покупать ", Symbol());
//long
ticket = OrderSend(Symbol(), OP_BUY, lots,NormalizeDouble(Ask, Digits), 3,NormalizeDouble(Bid - sl * Point, Digits), 0, "Buy", MagicNumber, 0, Blue); //Ask
//----
if(ticket < 0)
{
Sleep(30000);
prevtime = Time[1];
}
buy_order_open = 1;
}
}
An Alert with a message is triggered, but the orders are not sent... :((
Коллеги, почему может возникать такая проблема:
условие на открытие позиции выполняется, а позиция, при этом, не открывается...
Alert("Время покупать ", Symbol());//long
ticket = OrderSend(Symbol(), OP_BUY, lots,NormalizeDouble(Ask, Digits), 25,NormalizeDouble(Bid, Digits) - sl * Point, 0, "Buy", MagicNumber, 0, Blue); //Ask 25 для тестера проскальзование хаотично
Alert с сообщением срабатывает, а ордера не отправляются... :((
What does it say in the magazine!?
А что пишет в журнале!??
The thing is, in the tester only a few trades are made over a long period...
I decided to check the performance on real time...
And so, the Expert Advisor displays messages about "sell/buy" opportunities regularly, but does not make deals....
Дело, в том, что в тестере совершается только несколько сделок за долгий период...
Решил проверить работаспособность на реал-тайме...
и вот, советник мне сообщения о возможности "продать/купить" выводит регулярно, но сделок не совершает....
There is a log in the tester window and it tells you why it was unable to complete the operation.
People, tell me what's wrong. I'm trying to call global variable, which is called by name and period of graph. But I'm getting something wrong. >> THANK YOU!
Shouldn't you do a GlobalVariableSet first?
Should I first make a GlobalVariableSet?
I have entered the GlobalVariable into the GlobalVariable table and set its parameters. I am trying to call it. I think I wrote a wrong line
string PP = Symbol()+ Period();
Глобал переменную в таблицу Глоб. переменных я вписал и параметры ее задал. Пытаюсь ее вызвать. Думаю, что неправильно написана строка
string PP = Symbol()+ Period();
The string is written correctly, but the result is as follows. The period is a number, if in doubt, convert it explicitly from int to string, maybe a space is added before the number and you get a string like "EURUSD 1".
The string is written correctly, but the result is as follows. Period is a number, if in doubt, convert it explicitly from int to string, maybe a space is added before the number and you get a string like "EURUSD 1"