Join our fan page
- Published by:
- Vladimir Karputov
- Views:
- 3575
- Rating:
- Published:
- 2017.03.02 09:56
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
A tick Expert Advisor. Comparing the price on the previous tick and the current price.
Attention! Tests only in the "Every tick based on real ticks" mode.
Author of the idea is Sergey Artukh, author of the MQL5 code is barabashkakvn.
Algorithm: two static variables:
static double prev_bid=0.0; // a static variable for storing the bid price on the previous tick
The static variable retains its value after leaving the function.
Input Parameters:
- the difference between the price on the previous tick and the current one
- loss of points
- reverse of signals
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/17277

Comparing open prices of the zero and third bar.

Derived from the NRTR indicator, provided with a new visual display.

The Expert Advisor places two pending orders at a certain time.

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.