Real author:
Mohammad Soubra
This is a great beginners’ example of the function OnChartEvent() & creating objects on the chart to access them for some tasks
Similar MetaTrader Trading Tools:
- Example of plotting a function spectrum using the… Description: Example of plotting a function spectrum using the FFT library A test function based on the sum of 3…
- Simple check open orders filter boolean function for… It is common for novice developers to face the challenge of making the Expert Advisor able to detect if there…
- BreakEven Function - script MetaTrader 4 //+------------------------------------------------------------------+ //|Breakeven                                                        | //+------------------------------------------------------------------+ void BreakEven(double _breakEvenPips, bool useSymbol=false, bool useMagicNumber=false, int _magicNumber=0) {     for(int i=OrdersTotal()-1; i>=0; i--) {         if(OrderSelect(i,SELECT_BY_POS))…
- Trailing Step Function - script MetaTrader 4 //+------------------------------------------------------------------+ //|Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â | //+------------------------------------------------------------------+ void TrailingStep(double trailingStepStartPips, double _trailingStepPips, double initialStopLossInPips=0, bool useSymbol=false, bool useMagicNumber=false, int _magicNumber=0, bool initialStopLossWillBeDone=true) { Â Â Â Â for(int…
- Trailing Function - script MetaTrader 4 //+------------------------------------------------------------------+ //|Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â | //+------------------------------------------------------------------+ void Trailing(double trailingStartPips, double _trailingPips, double initialStopLossInPips=0, bool useSymbol=false, bool useMagicNumber=false, int _magicNumber=0, bool initialStopLossWillBeDone=true) { Â Â Â Â for(int…
- Trade Transmitter via web and OnTrade Function to… This EA has 3 Very Interesting Functions: 1. It can Detect Trades and its modifications in the account, made by…
- TimeInRange time checking function - library MetaTrader 4 Fast time range checking function. Doesn't use slow string parsing. Function returns TRUE if time in range, FALSE otherwise. Usage:…
- Errors function. In Russian. - library MetaTrader 4 Errors function. In Russian. Function call: #include <Error.mq4> Usage example: Print("Error : ",Error(GetLastError())); Errors function. In Russian. - library MetaTrader…