fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. edwardseer
    3. Posts
    E
    • Profile
    • Following 0
    • Followers 0
    • Topics 41
    • Posts 138
    • Best 0
    • Controversial 0
    • Groups 0

    Posts made by edwardseer

    • RE: Memory stuff

      converted them to use comments instead to determine what i want to find. hopefully when i test it out when market start it works as what i wanted it to haha.
      also is there a way to display flag status in comments then i can remove more variables from the ea?

      posted in Questions & Answers
      E
      edwardseer
    • RE: Memory stuff

      if i only want "for each trade" to loop through in order group 1 trades buy and group 4 sell, how do i go about doing it?
      also how do i put the condition for magic number as variable inside, u mentioned is magic start+group. but where do i get the variable for magic start or i can just type in magicstart or something.
      i want it to loop through the past group1 buy and group 4 sell in chronological order and count the number of trades before it reaches a group1 buy
      something like "for each trade" -> condition current trade magic number = magicstart+1 -> true -> break false-> nbuytrade=nbuytrade+1

      posted in Questions & Answers
      E
      edwardseer
    • RE: Memory stuff

      the on trade event is to count the current closed trade when the trade closed. because the order of the history does not necessarily run in series tats y i had to use once it closed this trade i add this current profit/loss into a variable to not mix it up with the other trades thats running.
      ya i would think there is a simpler way but its like if buy -> hedge -/-> recovery i dun want it to run the 3rd stage whenever the 2nd stage has been run before.
      thanks for your help. i will try to think of how to make it work using trades.
      yes i initially doubted hedge and without it everything is simple but my partner wanted it adamantly so i decided to go along with it and see how it goes but it turned out to be working well so far.

      posted in Questions & Answers
      E
      edwardseer
    • RE: Memory stuff

      i rearranged the layout to maybe make it a bit more clearer.
      the first line is the current open trade checker and it included previously closed trade. each direction is like an independent ea. so im just talking about sell now.
      it checks if the signal for sell is valid and all valid is sell just like in the initial sell. the trade management is the tricky part. theres a recovery portion and hedge portion.
      if it drop more then a certain pips and a buy occur it will just make another buy in the same direction and now it will start to look for break even.

      the normal close flags are added just as a precaution and reset everything back to false.
      when it has a sell and one of the signal changes direction to a buy, it will immediately open a hedge trade, until the all signals align for a sell again then it will close the hedge trade. and set the flag for hedge to true. when the hedge closes, it sets another hedgecloseflag to true so that it would start looking for a breakeven trade.
      the recovery checks whether hedge is currently running through the flags. so it would not make a sell trade during hedge.
      when hedge close, a variable will store the closed hedge amount. the purpose of doing this is because there are possibly 2 direction running so i cant check for number of closed trade before and it can close an uncertain amount of hedge before it will close at a breakeven in total. so the hedge will carry on as long as its has not breakeven.

      speaking of this, oninit the global variable was checked to be empty or something and it output to EMPTY_VALUE to my variable and i cant find a way to solve this. for now a condition checks whether its more than a certain value but during live it keeps getting 21437... oninit. for now its working fine on strategy tester though. i think when it checks and there is no global variable it automatically assigned a EMPTY VALUE to that global variable.EMPTY_VALUE becomes a real value 214......... in this way.

      so the same is done for the buy direction and they operate mostly independent of each other.

      posted in Questions & Answers
      E
      edwardseer
    • RE: Memory stuff

      that modify variable was added after my main ea was already finished after i decided it was better to include whether it was on or off in the comments to facilitate bug fixing etc. the only use for the variable was just to show in the comments. i did not see where to put status of flags in the comments section so if there is, please let me know as i avoid the use of flags because of this issue after i built this ea. .

      i added the GV to try and save the current flag status in the ea so that when the ea restart, it will continue where the flags position were previously at. true or false. it doesnt matter even if the status was old. as i just need to to continue where it was when it closed. it was only added after the main code was completed already but i realised i need a way to save the state of the ea when it closed.

      it worked fine if it was closed normally. but i would like to have a further safety precaution as i would not want to manually close all the position it opened in the event of a crash which happened recently on my computer. the GV tat was written to MT4 was not saved so i had to manually closed the position myself.
      of course i would want to directly use the trade comments but i do not know how to use and its quite complicated to know define which history to include and which trade it was at and what it was suppose to do next with just the trade alone. since there is some trade which i considered as a long entry and some trades which are long are considered hedging against a sell currently opened and in turn affects what the ea gonna do. and if hedge are closed it might still be considered working towards breakeven etc. so i felt it was better to just save the state of the ea to prevent new bugs.

      edit: i reread ur comments, so you are saying even if i choose to write to file the file will also be gone like global variable even in crash like mt4?

      posted in Questions & Answers
      E
      edwardseer
    • RE: Memory stuff

      Bumpy.

      posted in Questions & Answers
      E
      edwardseer
    • RE: Virtual Stop bug?

      i think the problem was due to my own code, the initial stop loss was somehow always placed too wide cant figure it out yet though. sorry for the trouble.

      posted in Bug Reports
      E
      edwardseer
    • RE: Memory stuff

      also, i seen in the ea code that the code set the global variable to empty variable when theres no value in it if i remember correctly. this somehow resulted in the glboal variable keep being assigned to the EMPTY_VALUE and when i call that global variable into the ea it would my ea problem has im using the stored global variable in the calculation and empty_value somehow in this case is a value(21...) that was used into the calculation.

      posted in Questions & Answers
      E
      edwardseer
    • RE: Memory stuff

      erm could you look into creating a block to read from file lol? or suggest another way for me to store the information 😛 i uploaded another file id mt4-1788. it was using global variable to store the memory but if mt4 crashes the global variable are not saved. so another method i think of to saving is still to write to file lol. then oninit read the values from file.

      posted in Questions & Answers
      E
      edwardseer
    • RE: Virtual Stop bug?

      i did not notice the problem when i was using regular stop. but then i have changed some of the code although not related to the stop since i used the regular stop. i will test it out. i wanted the once per bar to be there as i only wanted it to change the stop loss and take profit level once every bar. since the take profit level is dependent on the candle close price. and i noticed that the ea will keep set the same stop loss in the bar in the expert journal even if the stop loss was not changed.

      posted in Bug Reports
      E
      edwardseer
    • RE: Virtual Stop bug?

      i guess it might be some problem with my code that's causing the problem though but im not too sure. i separated out the stop function of the ea and used the universal fractal instead. maybe you can check it out. its under mt4-1887. i will check what might be the problem in my code again.

      posted in Bug Reports
      E
      edwardseer
    • RE: Virtual Stop bug?

      i uploaded my project under id mt4-1630. the stop loss is under the fractal trailing stop is it because if u delete the line it treat it as the stop loss is deleted?

      posted in Bug Reports
      E
      edwardseer
    • RE: Virtual Stop bug?

      i just tried virtual stop and a problem that occur is sometimes the virtual stop line shown on the chart would not update to the latest stop loss i set. it would only update if i delete the line and it will then recalculate. i think the actual stop loss was also not updated too as the emergency stop i set also was updated after i deleted the pink line from the virtual stop

      posted in Bug Reports
      E
      edwardseer
    • RE: GUI Bug?

      ok i will try it. thanks

      posted in Bug Reports
      E
      edwardseer
    • RE: GUI Bug?

      hi, there gui bug which exist for quite some time. when u copy a block before or after rearranging the layout to look nicer then paste the block would revert everything back to the original position. its just troublesome to need to keep rearranging back when i forgot but it does not cause any functionality issue.

      posted in Bug Reports
      E
      edwardseer
    • RE: Bug in adjust field for text in local version

      nice its fixed. thanks

      posted in Bug Reports
      E
      edwardseer
    • RE: Bug in adjust field for text in local version

      http://snag.gy/N9l2B.jpg
      i type +"Trend" and +"H1HA" in the adjust field for text, but when i click update its not showing in the adjust field but then it works in actual ea.

      posted in Bug Reports
      E
      edwardseer
    • RE: Memory stuff

      a custom indicator builder would be nice 🙂 thanks for the info.
      im not too sure how to work with arrays either ><. for end user like me who do not know much about mql, i think its good if it works thats all. This is why we feel that your product is good as it is so easy to use when we just started and work as well for us. more advance stuff can be learned as we use. like mql codes can be inserted into the adjust field in variables etc after we get used to the more basic stuff of fxdreema (which already covers most uses). efficiency issues comes later when it becomes really a problem.
      Anyway, do not be bothered too much with my request, i created another solution to temporary fulfill my needs by taking screenshots of the lines drawn at regular intervals. the purpose of the ea i created for this is just to collect data and see whether the system works or find areas to improve.

      posted in Questions & Answers
      E
      edwardseer
    • RE: Memory stuff

      the excel thing is only for oninit so that whenever the chart is loaded, it can show me whats previous the indicator was saying using the excel file it has stored. something like a tick collector ea in the market.
      i need the data to be stored as i need the collected data on the live chart as the indicator used may repaint in live scenario so i wanted to collect the data as it goes in time and i only stored the values into the excel after that candle is confirmed.
      i will look into creating custom indicator though. thanks.

      posted in Questions & Answers
      E
      edwardseer
    • RE: Memory stuff

      unfortunately im a noob at mql :(. the only easy way out for me is by using fxdreema to collect the multiple indicator data and output the values calculated by a formula to a excel then maybe read the values from the excel output to show data collected on the chart
      i hope that you can include a block to read from excel based on the write to file function of fxdreema. Thank you.

      posted in Questions & Answers
      E
      edwardseer
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 4 / 7