Libraries: Smooth Algorithms - Corrected/Modified - library for MetaTrader 5

 

Smooth Algorithms - Corrected/Modified - library for MetaTrader 5:

Smooth Algorithms fixed version plus Trade Algorithms plus full operational EA, plus two indicators . So you will get complete project where you be able to see example how to use and implement this libraries

Author: Dragan Drenjanin

 
question: shouldnt the include files be placed in the includes folder? The file does not have separate folders. Otherwise, amazing work.
 

My fault, sorry. I forgot to mention that >> SmoothAlgorithms.mqh <<  and >> TradeAlgorithms.mqh <<  must be placed in the Include folder, and all indicators must be placed inside the Indicators folder , >> Example EA<<  inside Experts folder.  

This is one of my old project back to 2021

 
excellamt
 
Thank's
 

Amazing work, thank you for sharing!

I'm working my way through the EA ExampleEA.mq5 and most probably found a small bug. Could you turn your attention to function Breakeven() ?

Line 1141 says for POSITION_TYPE_BUY:

if(Ex_m_breakeven_stop >= stop_level && (take_profit - bid >= stop_level || take_profit == 0.0))

Line 1164 says for POSITION_TYPE_SELL:

if(Ex_m_breakeven_stop >= stop_level && ask - take_profit >= stop_level)

Both logic expressions obviously should be symmetric in my opinion. I guess the first one for long positions is correct?

EDIT: there's the same issue in function Trailing() ...

 
Hello, there may be some ambiguity within the mentioned functions, but this is just an example of a robot whose purpose is to demonstrate the implementation of the Smooth Algorithm class, nothing else.