Libraries: SignalMAAboveBelow 2

 

SignalMAAboveBelow 2:

A module of trading signals based on the Moving Average indicator signal module.


Author: Vladimir Karputov

 

Hello Vladimir. You have made a very useful library, Thank you.

Could you please make a library of Breakeven?

 
Shara1:

Hello Vladimir. You have made a very useful library, Thank you.

Could you please make a library for Breakeven?

This code implements the signals of the custom indicator - that is, this library gives its own decision at each poll: buy or sell.

The general concept of the Expert Advisor generated by the Wizard: the Expert Advisor contains three modules:

That's why I can't understand where "breakeven" can be defined. And everyone has their own interpretation of "breakeven" - sometimes even diametrically opposite.

 
Vladimir Karputov:

This code implements the signals of a custom indicator - that is, this library gives its own decision at each poll: buy or sell.

The general concept of the Expert Advisor generated by the Wizard: the Expert Advisor contains three modules:

That's why I can't understand where "breakeven" can be defined. And everyone has their own interpretation of "breakeven" - sometimes even diametrically opposite.

I would like the trailing stop to move to breakeven at the first opportunity.

 
Shara1:

The trailing stop would move to breakeven at the first opportunity.

Now I have searched and found such a module "TrailingParabolicSAR(aggressive).mqh" - based on the SAR trailing module: at the first opportunity IF initially Stop Loss is set to zero, Stop Loss is moved to breakeven and then the usual trailing.

But here is the main caveat: "... IF the Stop Loss is initially set to zero ...".

 
Vladimir Karputov:

Now I have searched and found such a module "TrailingParabolicSAR(aggressive).mqh" - based on the SAR trailing module: at the first opportunity IF initially Stop Loss is set to zero, Stop Loss is moved to breakeven and then the usual trailing.

But here is the main caveat: "... IF the Stop Loss is initially set to zero ...".

Such a trailing will be fine, but a regular trailing is better. Is this trailing adjustable?

 
Shara1:

It'll be fine, but I'd rather have a regular one. Is this trailing adjustable?

Either regular or breakeven. Or either. But not both.

 
Vladimir Karputov:

Either regular or breakeven. Or either. But not both.

The breakeven one, how do you test it? Where can I get it? Preferably with a description of how it works.

 
Shara1:

The one with the breakeven, how do you test it? Where can I get it? Preferably with a description of how it works.

This module was written a long time ago - I will test it myself, then post it.

 
Vladimir Karputov:

This module was written a long time ago - I will test it myself, then post it.

Will you post it in this thread?

 
Shara1:

Are you gonna put it in this thread?

No.