andrw11
andrw11
andrw11
Added topic Expert doesn't perform any trades!
i made my expert locked by certain account number and with time constraint and can only work on a demo account , the problem is that it doesn't perform any trades ! static datetime allowed_until = D' 2020.12 . 30 00 : 00 '; const long
andrw11
Added topic Logic for 2-step signal verification EA
i'd like to code EA which has a 2 step signal , if something happens ( like a cross ma or anything ) , then wait for 1-5 candles to see if another behavior happens and only then give me the signal  the problem i'm facing is that after the
andrw11
Added topic Merging Multiple strategies into one EA
i have multiple strategies , when i add them in one EA ,  i assumed that all profits will be added up but the end profit was less than that. For Example , 1. strategy one yields 1000$ profit separately 2. strategy two yields 5000$
andrw11
Added topic Position modifying and partial close
i have a take profit of " 150 " points but , I'd like to partially close a position if it get 50 points profits then modify the remaining position with a take profit ( 100 points) , here's my code the problem is that the position closes fully at 50
andrw11
Added topic Execute one trade per signal
i'd like to only make one trade per signal in other words "per new bar" here's my implementation with wrapping the logic within "IsNewCandle" function   but the problem is that the expert makes few trades compared to not using the "IsNewCandle"
andrw11
Added topic Multi-currency EA doesn't perform any trades
i'm trying to make EA iterate over number of symbols but it only performs trades on the symbol specified in the strategy tester ! could you help me find the error  #define EURUSD       "EURUSD" #define
andrw11
Added topic Create multi-currency EA
i'd like to make my EA iterate through symbols , but for some reason the code isn't working  void OnTick ()   {              for ( int i= 0 ;i< SymbolsTotal ( true );i++) {
andrw11
Added topic Delete Pending order if price moved
i'd like to delete a pending order if the price moved 500 points without executing it  Here's my attempt    CTrade trade; MqlRates pricedata []; ArraySetAsSeries(pricedata,true); int data
andrw11
Added topic Get Last FIXED values of ZigZag indicator in my EA
i'd like to access the last three fixed values of ZigZag Highs indicator (standard one)  i have seen other threads discussing the same problem but they are all in mql4 and i use mql5  Here's my code ,but no matter i change the indices , it
andrw11
Added topic my EA doesn't take profit in time
hello ,  my EA is supposed to have a take profit of 50 points , as you see in the pic , the bar was up over 130 points and it didn't take any profits !!  i'm controlling the spread to 15 points using "
andrw11
Added topic Open a new position if the last one hit a Stop Loss
i'd like to open a new buy position if the last buy position hit a SL  Here's my code buy it's not working !!    #include <Trade\Trade.mqh>   CTrade trade;    void OnTick ()   { //---
andrw11
Added topic Close an Open Position if Hit certain price
i'd like to make my EA to close a position if any of these conditions were met :    -profit on the position is 100 points     -price hit RSI 30 OR 70 depending if it's a Sell or buy  Here's my code but for some
andrw11
Added topic Optimizing EA for a faster strategy tester
i have included this indicator into my EA.However, after including it , strategy tester became so slow , it barley moves !! Indicator used :  https://www.mql5.com/en/code/19825 Can anyone help me find how to optimize it or anyway to
andrw11
Added topic Publish an EA written in python on the market
i have an expert advisor written in Python , but i can't seem to be able to upload it on the market here ! neither i can use strategy tester in the terminal  Any solutions
andrw11
Registered at MQL5.community