fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. Spuzy
    3. Posts
    • Profile
    • Following 0
    • Followers 10
    • Topics 5
    • Posts 81
    • Best 12
    • Controversial 0
    • Groups 0

    Posts made by Spuzy

    • RE: Add a new trade when the Close is < of the last open trade - 20 pips, and keep the same take profit of my last opened trade

      0_1557342270676_1679fee4-5097-4afa-9b2f-fa596d348302-image.png 0_1557342171258_91bd8836-85cc-41a2-bc95-bd6b53e2a009-image.png

      make a variable and then make a formula with which you want to change it.
      this way will add -5 every time the volume is added, meaning next time it will be -15 pips (or 15 pips in the opposite direction of the trade)

      and have it reset when the first trade triggers in the sell block.

      posted in Questions & Answers
      Spuzy
      Spuzy
    • RE: % of balance? Want to use 50% what should I put in?

      can you post a screenshot of the sell/buy block?

      posted in Questions & Answers
      Spuzy
      Spuzy
    • RE: Possible reasons for differences in visual mode?

      I had a similar problem, to me it was because I used values of candle close for some calculations, where if you just add the indicator to the chart it will already have those close values, where if they are run live, it will calculate on every tick meaning candle close will at some point in time be every value it ever was during that tick. meaning it cna trigger a condition for 5 seconds because it reached a high value and then drop. meaning it wouldn't be true if calculated on history data, but it was true at some point during candle life.

      to fix this just use previous bar for calculation. so the value cannot be changed

      posted in Questions & Answers
      Spuzy
      Spuzy
    • RE: How to access the trades made by same EA on another chart

      trades aren't saved by chart but they are saved by account.

      each trade started by an EA has a "magic number" so the program can somehow sort which trade was started by which EA.

      leave the magic number the same on both charts.

      and if you always want to have only 1 trade make a block like this
      0_1557165858761_8088f210-c45e-4ac6-b299-5fe0a1c66ad0-image.png

      if you're using multiple trades and want for different trades to affect different trades put the same group number to those trades.

      if you want only 1 trade active on your account then leave it empty
      (changing the group number will increase the magic number by the group number. that way the client can know with which trade to interact)
      put symbol to any symbol and the block will check all running trades on your account on any symbol, check for their magic number and if there's no trade running the block will proceed (orange path)

      posted in Questions & Answers
      Spuzy
      Spuzy
    • RE: % of balance? Want to use 50% what should I put in?

      did you type 50 or 50%?
      maybe it gets an error because you use a % char.

      posted in Questions & Answers
      Spuzy
      Spuzy
    • RE: can I Add Save Any Number In Memory EA ?

      @moon I did, is the thing.

      that picture shows it, to have 3 different values saved just make 3 variables and do it in a different order than the picture

      Have Var_C = Var_B
      Var_B = Var_A
      Var_A = your value you want to save

      so when the condition is true first we will save the old B value into C, then we will save the old A value into B and then we will change A into the new value.

      meaning you have 3 values saved from the same condition in order.

      so Var_C will be the value from 3 conditions ago. B from 2 conditions ago and A from the last time the condition occurred.

      posted in Questions & Answers
      Spuzy
      Spuzy
    • RE: can I Add Save Any Number In Memory EA ?

      you can do this if the condition is the same, but you want some older data saved
      0_1555595178612_fd284b9f-8bec-4804-8328-2524bab89f8e-image.png

      if there are 2 different conditions and you want 2 different values then just make a condition block for each and a modify variable block for each.

      posted in Questions & Answers
      Spuzy
      Spuzy
    • RE: Encrypted EA

      if(AccountInfoInteger(ACCOUNT_LOGIN) != your account ID)
      ExpertRemove();

      or in fxdreema terms 0_1555594538205_4120cb56-2404-41b6-98b0-16a7029c5aaa-image.png
      add that somewhere inside OnInit()

      this will lock your EA to only your account. don't share the source with anyone anyway and or delete it/store it better. don't share your fxdreema password with anyone or delete your projects once you download the source. you can always import your source file that was made in fxdreema and it will load it on the site.

      source code cannot be seen/changed/accessed on compiled .ex4/5 files so if anyone steals it and you have this code in it it will auto close as soon as they try to add it on the chart/backtest.

      you can also make a constant for a password, and make a block in on init that checks if that constant != what ever you want and then terminate.

      posted in Questions & Answers
      Spuzy
      Spuzy
    • RE: Need help backtesting

      I agree mt5 has a much much much better backtester. but yo cna download tick data suite 2 if you really want to test on mt4

      posted in Questions & Answers
      Spuzy
      Spuzy
    • RE: Price today 10AM higher than yesterday 02PM. Then buy !!! How can I do that?

      can't you make a variable, and then save the 2pm price into a variable and then compare it tomorrow at 10 am

      posted in Questions & Answers
      Spuzy
      Spuzy
    • RE: how to make my betting martingale/paroli settings change when my account grows? is it possible?

      I did some work around for myself. it doesn't take lots into account but your account equity, leveraged.

      I made a constant named init_vol and a variable named init_vol2

      on my buy/sell blocks I clicked the variables button in the upper right corner and put this into the white circle which means it will be executed as soon as the block is, before the block does it's thing.

      DynamicLots(Symbol(), "block-equity", init_vol)

      DynamicLots() is a custom function created by fxDreema.

      Symbol() will use the current Symbol for price. "block-equity" is what calculation I want and init_vol is the number to use in that calculation

      then put init_vol2 as your initial volume.

      I have the same for add on win and add on loss.

      so if you put 30 in init_vol constant it will use 30% of your equity on the initial volume. and if you put 10 on adds it will add 10% of your equity on wins/losses.

      this will calculate it's value on every run of the block meaning it will increase/decrease with every trade.
      and the initial volume is only used after a reset.

      of course this is just an example and you can change it to fit your needs.

      look through the code of your .ex5 to see what you can use that's already made inside. fxdreema did an awesome job.

      you can message me if you need any more help.

      posted in Questions & Answers
      Spuzy
      Spuzy
    • RE: onTester()

      nice, thanks for that 😄

      posted in Questions & Answers
      Spuzy
      Spuzy
    • RE: onTester()

      make it a choosable option in "Project Options" box and add a box in which we can type the code in and then place that text within return(); inside OnTester()

      and put OnTester anywhere inside the mq file, for instance just bellow OnInit()

      once you optimize a strategy you will have an additional thingy in Optimization Results which will be the value ontester returns. so if I get 8k different results and I can see it's profit, total trades, profit factor and such in the optimization results tab I will also be able to see number of profitable trades

      0_1549380636520_d032210f-eafa-4549-856a-54477397da40-image.png

      doesn't have to be a block and actually not sure if it can be a block. hope I explained it right

      posted in Questions & Answers
      Spuzy
      Spuzy
    • onTester()

      is it possible to add this to options of the project?

      for instance I always manually add

      double OnTester()
      {
      return(TesterStatistics(STAT_PROFIT)/TesterStatistics(STAT_EQUITY_DD));
      }

      is there already an option for this?

      if not is it possible to add it? let us write our own code that goes into return()?

      sorry if I posted in the wrong section didn't see a request section 😄

      love your work btw ❤

      posted in Questions & Answers
      Spuzy
      Spuzy
    • RE: Trailing take profit after take profit is hit

      I'm not really new to programming, which is why I don't want to make loads of blocks. but I am new to mql coding

      yes once a condition is met a pending order is placed. and I don't really want a trailing stop immediately but only once it's 5-10 pips away from the tp, or better yet once it hits my desired tp. but since I have 8 different tps it would be a nightmare adding conditions for each. hence why I'm asking if there's an easier way.

      I have tried pips away from take profit 5 then move the tp by 15 pips up and move the sl 10 pips under.

      but I got weird behavior from that that. will try again tho as I've made some changes to the ea since then.

      if there's no other way that comes easy to mind than nvm 😄 was just checking ^^

      posted in Questions & Answers
      Spuzy
      Spuzy
    • RE: Trailing take profit after take profit is hit

      um yea sorry my english and explanation was very bad.

      I have a take profit specified on my buy/sell orders, but I'd like that once they are hit or when the price moves to that level a trailing stop loss of something like 5-10 pips is placed then. so if the price goes 20 pips up before going down if it was a big fast move I'd have 10-15 pips more of profit. also risking 5-10 pips that way but yea.

      I have 4 different sell orders and 4 different buy orders. all have their own variable as tp that is changed with custom code.

      so I guess putting them in groups from 1-8 and then make a block that checks which order is active, then check if price is reaching the value I need?

      that's seems like adding a lot of blocks and will slow down the testing process by a lot, it's already slow 🙂

      so I was asking if there's a more efficient way of doing this

      posted in Questions & Answers
      Spuzy
      Spuzy
    • RE: Horizontal line with previous highs and lows.

      0_1548307300103_Highs and Low.ex4

      0_1548307370127_09e3ef1d-17dc-41c2-bb36-884410c7b714-image.png

      have it loaded like this, it will not look exactly like the one you posted, but it works exactly like that.

      use 20 for entries and 10 for exits.
      the same EA shouldn't be that hard to make, but it won't look the same which shouldn't matter if it's for personal use ^^

      use Candle ID 1 to detect breaks as using 0 will never break it.

      0_1548307604356_d82a85b2-2bcd-43aa-b4ce-c2078b104d1e-image.png

      posted in Questions & Answers
      Spuzy
      Spuzy
    • Trailing take profit after take profit is hit

      is there a way to do this?, I've tried doing pips from profit and then changing the stop loss and take profit, but it's as efficient and it seems to work weird. is there a way to not take profit once take profit hits, but put like a 5% of tp under the tp starting stop loss and then trail it?

      using trailling stop also doesn't work as wanted because it takes profit once tp is hit..

      posted in Questions & Answers
      Spuzy
      Spuzy
    • A way to save constants to be automatically applied to inputs of indicators

      Is there a way to apply created constants to indicators automatically, in my custom indicator I have 6 different inputs and I need them all to be the same on every block I make, and I'd use global constants so I can easily change them later in the tester. since I'll be having a huge amount of blocks and somewhere use the same indicator twice within a block I'll have a huge amount of right clicking and then constant clicking. is there a way to save them so that when I choose my indicator it automatically fills in the inputs with the right constants?

      posted in Questions & Answers
      Spuzy
      Spuzy
    • 1
    • 2
    • 3
    • 4
    • 5
    • 4 / 5