Forum

Open Opposite order once sl is hit

Hello your help will be highly appreciated, I have coding a function that triggers opposite ordertype when a trade closses in loss but not working at all. That is if we have buy order active and the order closses either by sl or opposite close and it resulis in loss then sell order will open at the

Buy on previous nigh and low

Hello I will appreciate your help, I have written a function but it is not doing out operations as required. Upon launching EA on chart it should open buy position on break of previous high later on the preceeding orders will be on break of previous low. I f any of the orders hit sl the EA resumes

Midnight candle

Hello I request help in coding the function I will explain below, I have already written some part of the code but I am unable to code a function that identifies the open and close of one hour midnight candle. The logic is that EA identifies one hour midnight candle close and open then drop down to

Take profit and lot increment

Hello have this function working our perfectly but I want to do some modification on it. Currently when EA has successive number of losses for instance 2 and from the input variable the n_op(number of operation is 3),the EA will increase the lot of the third trade together with the tp by a certain

Lot and Take Profit Increase

Hello friends I have written a code in mql4 everything is right but I am unable to add the lot and tp increment function into the EA. I request anyone with the knowledge to assist me in writing the code of this ne function. Here is the logic of the function and also keep in mind after the trade hits

Increment take profit and Lot size

Hello I have written this piece of code into my EA but it's not working kindly help me correct the bug and make it function well: Below are the the conditions under which the function should follow: Every time a multiple of "n_op" successive loss-making operations is reached, the EA increases both

Reverse logic error

Hello I need your assistance in debugging the following code to implement the logic below, I've tried many times but I am stuck. Your help will be appreciated: logic is open with buy and sell pair as per input.. when tp hit then reverse with opposite trade when loss then hedge at desired pips.. this

Expert advisor sharing

I have an EA I have coded using a custom indicator and it's working well. Now here comes my problem I want to share the EA to a friend but I don't want to share the indicator ex4 file with them. Is there a way of incorporating the indicator then share the EA file with them. Note I don't want them to

Grid entry

Hello everyone below is my grid code though it's not functioning as per my logic. The grid orders should only be triggered once the original buy and sell conditions have been met within the specified grid distance. What my code does it only triggers grid orders at the specified grid distance without

RSI entry.

Hello I am requesting your help on this piece of code. The idea is the EA should open both long and sell when the rsi is at 50 level. Note 50 level not greater or less than the level. Below is my code but if I use the equals sign (==) the orders are not triggered. Someone help string