Bid is quite simply, the current Bid price (quote).
Slippage is the amount (pips or points) you will let it deviate from the Bid. The price may have moved in the time it takes to place and then fill your order. If the price has moved more than the slippage amount, the order will not be placed. Note that this does not work on all brokers.
- www.mql5.com
So, is it better to make the slippage value = high value or to open it by using 0
so the user can change it ?
Why is anything used as input ?
so the user can change it ?
Why is anything used as input ?
so it handles only the trades with that magic number.
if your ea has a fixed magic number it can run into trouble when running on multiple charts because they all have the same magic number.
so you put in a separate number for each chart and then you can run multiple instances each with their own magic number.
this is only necessary when you want to run the same ea on multiple charts.
the more professional ea's work the other way around, you can run multiple symbols in one ea, so there is no need to use more then one and with a single magic number.
so it handles only the trades with that magic number.
if your ea has a fixed magic number it can run into trouble when running on multiple charts because they all have the same magic number.
so you put in a separate number for each chart and then you can run multiple instances each with their own magic number.
this is only necessary when you want to run the same ea on multiple charts.
the more professional ea's work the other way around, you can run multiple symbols in one ea, so there is no need to use more then one and with a single magic number.
it can get confused between orders, it will see the orders, from the other chart/ea as his own... not a good idea.
having two charts with on both the same ea with the same magic number is like having two Mohammad Soubra's ,
trying to drive the same car.
it can be done but then you also have to filter on OrderSymbol(), tickets and etc, and then the actual need for the magic number itself disappears..
besides, if you need the same ea on many symbols this shows a good reason for writing just one that handles it all.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
HI AGAIN
//----------------------------------------------------------------------------------
ticket = OrderSendBid, ????????????????????????????????????????????????????????
3, ????????????????????????????????????????????????????????
clrRed); //ARROW WITH COLOR ON CHART WHERE ORDER HAS OPENED
//----------------------------------------------------------------------------------
WHAT IS THE MEANING OF (Bid,) WHY IT IS REPEATED IN (PO_SELL,) AND (Bid,)????
WHAT IS THE MEANING OF THE SLIPPAGE AND IS IT NICE TO USE THE VALUE IN THE EXAMPLE ABOVE?
:)