Douglas Mwaura Ndungu
Douglas Mwaura Ndungu
  • Information
1 year
experience
0
products
0
demo versions
0
jobs
0
signals
0
subscribers
Douglas Mwaura Ndungu
Added topic Strategy tester opening & closing sell trades immediately yet buy trades are okay. What could be the problem?
The logic is that all trades should be closed on opposite signal but only buy trades respect this rule. Sell trades are closed immediately.  Buy and sell trades are executed properly when there is a buy or a sell signal, however calling these
Douglas Mwaura Ndungu
Added topic HELP: Calculate risk per trade based on fixed amount & risk percent of account balance
Hello traders. My code down here doesn't place trades when I select risk type as fixed amount or as a risk percent of the  account balance . It only places trades when fixed lot size is selected in the user inputs. The
Douglas Mwaura Ndungu
Added topic HELP: This function should return the highest price between the last two closed trades.
This function should return the highest price between the last two closed trades, i.e. from the open of the second last trade to the close of the very last trade. I don't know where I am going wrong. Help me out. //Returns highest price between
Douglas Mwaura Ndungu
Added topic HELP NEEDED: Help with this function. The function should return true if the last two consecutive trades closed with a loss or with 0 profit.
//Returns true if last two closed trades ended up in a loss or 0(breakeven) bool LastTwoTradesLost(){    double profitLossArray[];    int totalCount = 0 ;       HistorySelect ( 0 , TimeCurrent ());   
Douglas Mwaura Ndungu
Added topic Getting how long the last closed position took
Hello coders. I am try to get how long the last closed position took in milliseconds,  from entry to exit. The code below doesn't seem to produce what I want. Please advise. I am beginner in MQL5, so bear with me. struct DEALTIME{   
Douglas Mwaura Ndungu
Left feedback to developer for job ZigZag and Ehler’s Fisher Transform Expert Advisor for MT5
Douglas Mwaura Ndungu
Registered at MQL5.community