Forum

Is it possible to choose the last losing position? IN MQL4

Hi With this code, I can close all the positions when, for example, (buy) when the profit is positive Now, when the close position is provided, I want the positions (buy) to be closed. If the profit is positive, it will be closed, plus the last position that is at a loss. I asked the professors for

Tips for getting output from

Hello to all friends and professors I want to get output from this indicator, but I tried everything I knew the code, but I could not get an answer. Note: The position should be taken at the moment when the indicator signals I tried these codes to get the output but it is wrong string Stoch1() {

Order send No01 to Up

Hi everyone Please help professors extern int Postion_Buy_No1 = 0.01 extern int Postion_Buy_No2 = 0.02 extern int Postion_Buy_No3 = 0.03 extern int Postion_Buy_No4 = 0.04 extern int Postion_Buy_No5 = 0.05 extern int Postion_Sell_No1 = 0.11 extern int Postion_Sell_No2 = 0.12 extern int

How do I add a dashboard indicator to a robot?

H there , I want full help from programming professors. I am trying to make EA from Fx Eagle Indicator , My EA working on Moving average fine this is my cod: //+------------------------------------------------------------------+ //| |

Build a mini chart

Hello to all my friends and professors. I want to create a mini chart that allows you to add any indicator separately. Is it possible for friends to help? It should be like this

void Mail() and Table

Hi everyone Could you tell me where I am wrong with this code I receive a error with this code. //-------------------------------------------------------------- void Mail() { if ( TimeCurrent ()>OrderOpenTime()+ 1 *( 300 *timeclose1)) { SendMail ( "Information" , "\nBalance: " ,AccountBalance()

Problem in SendMail

Hi everyone Everything is right in the email test section And I get the email test in my email But in coding I think I'm wrong and I don't get an email from an expert. //+------------------------------------------------------------------+ int start() { double b1_shift1= iCustom ( Symbol (), 0

How do I add a logo to Expert?

Hi everyone How do I add a logo to Expert? Sample : thanks all of you

Problem with the number of positions

Take a look at this photo We sell about 5 candles, but Expert also sells the next 5 candles. When the sales signal is issued, this code covers 10 candles after the sales signal. Even when the sales signal runs out I would even get 4 if we put 10 candles in the box (MathMax(10,Orders())) if the sales

Only position in the first 5 candles

Hi everyone How can I buy only the first 5 candles of Experts when the signal is given. Thanks everyone