Simple continuous trend-following strategy for buying and selling based on predefined conditions – EA MetaTrader 4

Simple continuous trend-following strategy for buying and selling based on predefined conditions - expert for MetaTrader 4
This MetaTrader 4 (MT4) script implements a simple continuous trend-following strategy for buying and selling based on predefined conditions. Here’s a breakdown of the script: Initialization: The script initializes and prints a message when initialized successfully. Deinitialization: The script deinitializes and prints a message when deinitialized. OnTick Function: This function executes whenever there’s a new … Read more

Simple Continuous ParabolicSAR – indicator MetaTrader 5

Simple Continuous ParabolicSAR - indicator for MetaTrader 5
For any instruments and time frames. The main variable of the period ParabolicSARPeriod. The principal calculation of the indicator consist of 9 lines max=0;  min=0; for(int j=1; j<=ParabolicSARPeriod; j++)      {    max=max+Highest(High,j,i)/ParabolicSARPeriod;    min=min+Lowest(Low,j,i)/ParabolicSARPeriod;      } max= NormalizeDouble(max,_Digits); min= NormalizeDouble(min,_Digits); As a comparison simple ParabolicSAR is shown Simple Continuous ParabolicSAR – indicator MetaTrader 5