fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. holygrailfx
    3. Posts
    H
    • Profile
    • Following 1
    • Followers 0
    • Topics 39
    • Posts 110
    • Best 0
    • Controversial 0
    • Groups 0

    Posts made by holygrailfx

    • RE: Lotsize Calculation keeps returning 0

      Non no you are not missing anything, I like the simplest options best 😉

      when I am using it it returns 0, while I apply your calculation it should retrun 0.03

      1% of 1500 = 15/500 =0.03
      which would be an acceptable lotsize as my broker accepts 0.01 as the minimum
      but instead it trades 0.01 as it interprets 0.03 as ZERO

      when I look at the source code it seems you use MathRound, whihc would transform the 0.03 in ZERO
      while I would have used Normalizedouble with 2 digits after the comma so it retruns the 0.03 lotsize

      Do I make sense? Do I misuse the intented use? Or should I change my parameters?
      Thanks for your help

      posted in Questions & Answers
      H
      holygrailfx
    • RE: Wishlist Item for new version

      Yes
      It is a ugly square shape not related to the comments
      but it serves my purpose, I am sure there are more elegant and better ways.
      But this is a quick easy fix for me 😉

      Looking forward to the android...

      Another quick question
      are we allowed to set a fractional pip in SpreadFilter for the Fixed Spread Value?

      spreadfilter.png

      ......
      spreadfilter.png

      posted in Questions & Answers
      H
      holygrailfx
    • RE: Count Positive and Negative Bars

      What is the easiest method to count the number of bars that ended up positive and negative over the last 25 bars?

      posted in Questions & Answers
      H
      holygrailfx
    • RE: Lotsize Calculation keeps returning 0

      Okay so I checked a bit more

      my marginrequired is 500
      so in your calculation

      you take (% of balance* balance)/marginrequired
      which would be 10% of 10000=1000/500 =2 lots

      Now if your balance is smaller lets say 1500 and your % 1%
      1% of 1500 = 15/500 =0.03
      which would be an acceptable lotsize as my broker accepts 0.01 as the minimum
      but instead it trades 0.01 as it interprets 0.03 as ZERO

      My guess is that you use MathRound a bit to early
      I might be (probably am) wrong, but just trying to help

      😉

      posted in Questions & Answers
      H
      holygrailfx
    • RE: Lotsize Calculation keeps returning 0

      I have a problem with the lotsize settings, these are my settings
      lotszie.png

      It always returns 0, so I keep trading 0.01lots

      any suggestions why it gives a answer of 0 every time

      ......
      lotszie.png

      posted in Questions & Answers
      H
      holygrailfx
    • RE: Wishlist Item for new version

      yes Stopped message appears, which is nice if you just disable autotarding but I would prefer the whole message dissapears when I remove the EA, otherwise it messes up my template, I get template with a fixed message spread equals such and such and status: stopped everywhere ;-(

      For notifications, in my opinion it does NOT work with new rows, just one line of text limited by number characters,

      If the little bit refers to object creation
      On init I created a custom block: with

      ObjectCreate("LabelBox1", OBJ_LABEL, 0, 0, 0); ObjectSetText("LabelBox1","g",200,"Webdings",SteelBlue); ObjectSet("LabelBox1", OBJPROP_XDISTANCE, 0); ObjectSet("LabelBox1", OBJPROP_YDISTANCE, 2); ObjectSet("LabelBox1",OBJPROP_BACK,0);ObjectSet("LabelBox1",OBJPROP_CORNER,3);
      

      and on deInit

      ObjectDelete("LabelBox1");
      

      which removes the object on removal of the EA

      it gives a block in the lower right corner

      Hope this helps

      posted in Questions & Answers
      H
      holygrailfx
    • RE: Wishlist Item for new version

      Thanks for the once per bar fix, works great!

      Some other suggestions:
      Very minor annoyances (not urgent in any way)

      ** when I select a variable to become an external variable, would it be possible that it shows up in variables overview, in the right top corner? That way I can reuse it in other places easily, without creating an additional variable

      ** when I remove the EA from the chart it does not remove the Spread Calc Message, and EA is working confirmation, would be cleaner if it is removed on deinit

      ** sendnotification function, but I believe you are working on it already

      ** ability to add the result of a condition to comments

      ** when I add comments I prefer to add a background, so the text does not get obscured by other chart objects
      I have a added a custom block to add init and one to deint for respectively creating and deleting the object
      I can send you my code version if wanted.

      fxDreema thanks for the great support and the excellent product, I am finally able to create working EAs and flesh out my trading ideas easily and quickly! I will continue to use to understand your product even better.

      I will keep you posted if I find other wishes 😉

      Cheers

      posted in Questions & Answers
      H
      holygrailfx
    • RE: Square Root

      I want to take the square root of a value
      so I was wondering if anybody could show how to realize this ?

      I have one variable that I want to square root ith the number of open trades

      So if my variable is 1.5
      and open trades are 3

      the square root would be 1.51.51.5=3.375

      the original MT4 function is MathSqrt I think

      Thanks for your help

      posted in Questions & Answers
      H
      holygrailfx
    • RE: How to : Set a minimum distance between consecutive orders

      Thank you
      I feel a bit dense :-@

      I will try this, and the pips away from open price even allows for double sided/absolute distance!

      I will try, thanks

      posted in Questions & Answers
      H
      holygrailfx
    • RE: How to : Set a minimum distance between consecutive orders

      Could you give me a suggestion how I can set a minimum distance between the opening of consecutive orders?

      In short when I just opened a buy order on 1.10000
      The EA should not open another order unless it is at least 10pips away, lower or higher

      any suggestion how I can create the blocks to get this done?

      posted in Questions & Answers
      H
      holygrailfx
    • RE: Renko Charts and once per bar function

      end of day, became this morning
      but as far as I can tell, the once per bar function works perfectly now!

      THANKS

      posted in Questions & Answers
      H
      holygrailfx
    • RE: how to display result of a condition in comments

      I was trying to display in Comments the current trend

      for example
      the condition CandleClose(1)>CandleOpen(1) is true

      on the commnet screen I have a message saying CURRENT TREND IS BUY

      it is only cosmetics 😉

      posted in Questions & Answers
      H
      holygrailfx
    • RE: how to display result of a condition in comments

      Well title says it all I believe..
      I guess I have missed something (again) 😉

      Thanks for the help

      posted in Questions & Answers
      H
      holygrailfx
    • RE: Renko Charts and once per bar function

      That sounds great!
      So I recompile my EA and test for once per bar

      I will confirm at the end of day

      Thanks

      posted in Questions & Answers
      H
      holygrailfx
    • RE: Renko Charts and once per bar function

      I know it is a bit weird
      but I would really appreciate if we can figure it out
      this renko has two exceptional functions: you set the size of the flip, this takes out a lot of whipsaw, and you can determine the size of trend confirmation, so if price moves with the trend you can set a renko bar to 100points(10pips), have a new bar create when price moves with trend of example 20point (2pips), but only a countertrend is created when the bar flips 100%, so a reverse of 200point, 20pips.
      This allows me to trade price directly on the chart without an additionla indicator, this indicator takes care of smoothing and whipsaw

      Anyway, before starting to use your incredible tool, I did some MQ4 coding, a lot of copy past of course,

      I used the following to assure my EA only executed a certain block once per bar, which worked
      can I just create a custom block for this, if yes some help would be appreciated

      // on global
      int thisbar = 0;

      //then within a certain block
      void do_trend()
      {
      if (Bars != thisbar)
      {
      thisbar = Bars;

      // declare some function

      }

      Bars just simply counts the number of bars in history and compares to my value
      if different we execute, is same we dont execute

      Hope this helps

      posted in Questions & Answers
      H
      holygrailfx
    • RE: Renko Charts and once per bar function

      Yes very strange 😉 i Like them
      Just so you know the BrickStepTime function does not wrok properly, just set to false
      If you want I can send you my template, let me know

      considering the times, if they are the time of the previous bar they are correct, I think the indicator writes the times and open and close prices at the closure of the bar,
      but within the current bar my fucntions, I send a sendnotification after a once per bar, and it gets executed every tick or at least very often

      posted in Questions & Answers
      H
      holygrailfx
    • RE: SendNotification

      I think it just allows for one row, so I send a new textmessage for each trade action or a change in trend

      As you mentioned the number of messages is limited per second and minute. In my experience if you abuse the messages are queued and arrive later, as such losing their significance, but it does not stop or gte blocked completely

      posted in Questions & Answers
      H
      holygrailfx
    • RE: SendNotification

      Great!

      I imagine using sendnotification as follows

      sendnotif.png

      But it would be WAY BETTER if we also have the option to parse all the information available in Alert besides a simple text message
      For example when a trade closes I like to know that trades profit and total profit for the day

      I dont know if there is maximum of characters to a push notifications

      Thanks

      ......
      sendnotif.png

      posted in Questions & Answers
      H
      holygrailfx
    • RE: SendNotification

      I have been trying to create a custom block, that I can simply attach to another block so that when that block is executed succesfully a notification gets send

      My current sample, does send my push message to my phone
      but I cannot figure out how I would have to define so I can input custom text whenever I attach a new SendNotiication block
      it currently sends "snd" all the time ;-(

      Any help please, anybody?

      my current definition in the attachment

      sendnotification.png

      ......
      sendnotification.png

      posted in Questions & Answers
      H
      holygrailfx
    • RE: How to count Bars reliably using Offline Range Charts?

      has this been solved?

      posted in Questions & Answers
      H
      holygrailfx
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 5 / 6