Trading by Moving Average. Checking for sufficiency of funds.
Performance result on EURUSD, M30 from 2016.05.08 to 2016.12.28:
Also, before each operation, we should check if we have sufficient funds:
This protection allows avoiding the "not enough money" error.
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/17288
RSI EA - trading based on overbought/oversold zones determined by the iRSI (Relative Strength Index, RSI) indicator.Money Fixed Margin
An example for calculating the lot value with a fixed margin level. That is, if you specify 10%, a position with the margin equal to 10% of free margin will be opened.