- David Diez: but as the print is not changing its value there must be an error.Print OrderTicket also.
if(!OrderSend(Symbol(),OP_BUY …
OrderSend does not return a boolean. Check your return codes properly.- Martingale, guaranteed to blow your account eventually. If it's not profitable without, it is definitely not profitable with.
- Print OrderTicket also.
- OrderSend does not return a boolean. Check your return codes properly.
- Martingale, guaranteed to blow your account eventually. If it's not profitable without, it is definitely not profitable with.
1. It works trough printing the orderticket, how is it? Can't do this without the ticket?
double NL=NormalizeDouble(OrderOpenPrice()-(GridSize*10)*Point,Digits); NO TICKET IN THE FORMULA Print("Next LONG grid order at ",NL); VALUE TO PRINT EACH NEW GRID ORDER
2. This ordersend fits my needs.
3. There are many opinions about martingale, as many people making money by withdrawing weekly.
Have this code for building a grid of orders, grid is working properly but OrderOpenPrice don't change its value to match the last OP:
Don't actually see a mistake in the loop, but as the print is not changing its value there must be an error.
Hope someone can help with this. Thanks in advance.
datetime opentime = -1; double openprice = 0; for(int i=OrdersTotal()-1;i>=0;i--) { if(OrderSelect(i,SELECT_BY_POS) && OrderSymbol()==_Symbol && OrderType()==OP_BUY && OrderOpenTime()>opentime) openprice = OrderOpenPrice(); } if(openprice>0) Print("Last OpenPrice is ",openprice);
1. It works trough printing the orderticket, how is it? Can't do this without the ticket?
2. This ordersend fits my needs.
3. There are many opinions about martingale, as many people making money by withdrawing weekly.
- You said "something must be wrong." So print the ticket as well as price, so you find out what is wrong. What does that have to do with your NL computation? I said Print.
- So what? I said check your return codes. What does that have to do with your OrderSend?
- Argumentative. What part of "eventually" was unclear? It's (was) your money.
While you can only guess.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Have this code for building a grid of orders, grid is working properly but OrderOpenPrice don't change its value to match the last OP:
Don't actually see a mistake in the loop, but as the print is not changing its value there must be an error.
Hope someone can help with this. Thanks in advance.