Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 515
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
Yeah, but, you know. I'd have to dig through someone else's code. Which I don't understand, and it takes a lot of time To figure it out.
Start with Tutorial, then Documentation, etc. There's no other way! And you'll be able to understand other people's code and learn a lot from them! Hints don't teach, they corrupt!
Question about visualisation.
I create a pending order with a command like this
OrderSend(Symbol(), OP_BUYLIMIT, lot, price, 3, 0, take_profit, 999, 999, 0, Blue);
In the tester, we can see its all path as arrows: pending order ------> buy --------------> take profit sale
However, only the blue arrow appears when placing an order and we can only guess about the buy and take profit in the logs. Is there any way to see the arrows in the real chart the same way as in the tester?
Question about visualisation.
I create a pending order by a command of the following type
OrderSend(Symbol(), OP_BUYLIMIT, lot, price, 3, 0, take_profit, 999, 999, 0, Blue);
In the tester, the arrows show its all path: pending order ------> buy --------------> sell at Take Profit
In real life, only the blue arrow appears when an order is placed and we can only guess about the buy and take profit in the logs. Is there any way to see the arrows in the real chart the same way as in the Strategy Tester?
To do this, open without TP, and then specify a colour when modifying too, and you will have a closing triangle with a dotted line from the opening itself!
Hello, I wrote a simple script to open pending buy order. The script works successfully on a demo account, but on a real account it generates error: 133, which means trading is not allowed. Could you tell me what is the problem? What may be the reason for this error?
extern int orderSize = 50;
int start()extern int SL = 20;
extern int TP = 20;
{
double correctPoint = 0.0001;
double priceOpen = iOpen( Symbol(), PERIOD_M5, 0 ); //write the open price of the current five-minute bar in the priceOpen variable
double priceBuy = priceOpen + (double)orderSize * correctPoint; //the price at which the pending order is placed
double priceTP = priceBuy + (double)TP * correctPoint;
double priceSL = priceBuy - (double)SL * correctPoint;
while( !IsTradeAllowed() )
Sleep( 100 );
int codeError = OrderSend( Symbol(), OP_BUYSTOP, 1.5, priceBuy, 100, priceSL, priceTP );
if( codeError == -1 )
Alert ("BuyStop error: ", GetLastError() );
return(0);
}//±
I want to make a simple owl..... script when placing the 1st order SL and TP gives error 130, and where to insert code with Tralingstop???
i want to make a simple owl..... script when placing 1st order SL and TP gives error 130, and where to insert code with Tralingstop???
130 - stops are wrong. Carefully read the terms of your brokerage company again and then re-read them regularly so you don't forget. Why do you all like Alpari so much, it's like honey...
The code of trawl can be copied into the start, or you can use a separate function, again, from the start.
130 - the stops are wrong. Read the trading conditions of your broker once again and then reread them regularly so that you don't forget. Why do you all like Alpari so much, it's like honeydew...
The code of trawl can be copied into the start, or you can use a separate function, again, from the start.
As he took this owl from CodeBase, he can also choose another one with trawl. And in Alps, you have to open without SL and TP and immediately modify the order by placing them. Why don't they bother to read the broker's terms and conditions, the forum rules, the MT4 help and the information written and discussed a hundred times here on the site, use the search here and on Google? Before asking basic questions?
how to connect codes....there's a trading stop... I have not inserted it anywhere, maybe it has an error, when compiling it says 'if' - expressions are not allowed on a global scop, it seems to mean an error before if.... right?
how to connect codes....there's a trading stop... I have not inserted it anywhere, maybe it has an error, when compiling it says 'if' - expressions are not allowed on a global scop, it seems to mean that the error is before if.... right?
The if condition is not allowed on a global scop. Turn it into a robot, like this: