Forum

Move stoploss to breakeven. Not working.

Hello World! Could anyone give me some advice or a clue on how to get my breakeven function to work? Not asking for anyone to fix my code as I respect you all and there are no slaves here. :) Here is my attempt. Just trying to create a function that will move the stop-loss to break-even. Pretty sure

How difficult would it be to convert this indicator into something for mql4?

Hello world! I have been butchering custom bollinger bands for a few days now in mql4. Last night I came across this Bollinger Band on TradingView and I cannot figure out a way to replicate the behaviour onto a BB for mql4. I have applied linear regression onto my current BB's and it just never

Can anyone think of a solution for this?

This is a bollinger band with -4 offset. The idea is that we sell when it hits the top and buy when it hits the bottom. For some reason this looks way too perfect. Problem is... It will never actually trigger a trade because of the -4 offset. Price has nothing to come in contact with. Is there a way

How do I open a trade with a fixed risk percentage? MQL4

Hello, I know this is a basic question, but I am struggling to find a way to open a trade with a fixed risk percentage. As an example, I would like a trade to open with a risk of 2%. this way I can tell the EA to place a stoploss without stretching my risk. If price hites my stoploss I want to close

EMA cross EA advice mql5

Hello world, I'm somewhat new to mql5 and forex automation in general. Recently I have been brushing up on c++ for the purpose of developing my own EA. I would greatly appreciate it if someone could provide me with a link to the source code of a working EMA cross strategy. My goal is to enter trades