Experts: MACD No Sample

 

MACD No Sample:

An Expert Advisor based on the iMA (Moving Average, MA) and iMACD (Moving Average Convergence/Divergence, MACD) indicators

MACD No Sample

Author: Vladimir Karputov

 
Hi friend, good evening.
I would like to know if you have to enter in your code the value not to pass the order to the next day, closing all the orders, doing the backtest in the period of 1/1/2019 to 03/15/2019, I verified that you obtained two negative closures, one of -699 and one of -188, totaling a loss of R $ 880.00. Your theft is round.
Congratulations, I circled him on the 5-minute chart for the MINI INDEX BOVESPA.
Thank you if you can help me. Thank you.
 

Hi Vladimir, 

I am new to mql5 and do not have programming background.

Please can you help me with keeping seperate condition for

1 ) buy entry

2) buy exit

3) sell entry

4) sell exit

Thank you 

----------------------

Привет владимир, Я новичок в mql5 и не имею опыта программирования. Пожалуйста, вы можете помочь мне с сохранением отдельного состояния для 1) купить вход 2) купить выход 3) продать запись 4) продать выход Спасибо

 
S_Trader :

Hi Vladimir, 

I am new to mql5 and do not have programming background.

Please can you help me with keeping seperate condition for

1 ) buy entry

2) buy exit

3) sell entry

4) sell exit

Thank you 

----------------------

Привет владимир, Я новичок в mql5 и не имею опыта программирования. Пожалуйста, вы можете помочь мне с сохранением отдельного состояния для 1) купить вход 2) купить выход 3) продать запись 4) продать выход Спасибо

Sorry, I don’t understand what exactly you want. Try to describe in more detail.

 

this advisor does not take a position when the condition is TRUE?

 
this EA does not take position when condition is TRUE?
 
S_Trader :
this EA does not take position when condition is TRUE?

Who is "condition is TRUE"? What are you asking about? Can you ask your question humanly? Is it so hard to write the full text? Why are you writing some bits of text - nothing is clear.

 

Open a new purchase: if (ma [0]> ma [1]) if (macd_main [0] <0.0) if (macd_main [0]> macd_signal [0]) if (macd_main [1] <macd_signal [1]) if (MathAbs (macd_main [0])> Ext_MACD_Level) if (count_buys == 0) m_need_open_buy = TRUE; Open a new sell: if (ma [0] <ma [1]) if (macd_main [0]> 0,0) if (macd_main [0] <macd_signal [0]) if (macd_main [1]> macd_signal [1] ) if (MathAbs (macd_main [0])> Ext_MACD_Level) if (count_sells == 0) m_need_open_sell = TRUE; Close a buy position: (macd_main [1]> 0.0) && (macd_main [0] <0.0) or stop the loss Close a sell position: macd_main [1] <0.0) && (macd_main [0]> 0.0) or stop lesion

 
S_Trader :

Открыть новую покупку:  если (ма [0]> ма [1])  если (macd_main [0] <0.0) если (macd_main [0]> macd_signal [0]) если (macd_main [1] <macd_signal [1]) если (MathAbs (macd_main [0])> Ext_MACD_Level) если (count_buys == 0) m_need_open_buy = TRUE; Открыть новый продать: если (ма [0] <ма [1]) если (macd_main [0]> 0,0) если (macd_main [0] <macd_signal [0]) если (macd_main [1]> macd_signal [1]) если (MathAbs (macd_main [0])> Ext_MACD_Level) если (count_sells == 0) m_need_open_sell = TRUE; Закрыть позицию на покупку: (macd_main [1]> 0.0) && (macd_main [0] <0.0) или же остановить убыток Закрыть позицию на продажу: macd_main [1] <0.0) && (macd_main [0]> 0.0) или же остановить убыток

Sorry, I don’t understand what you are writing about.