fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. s00071609
    3. Posts
    S
    • Profile
    • Following 0
    • Followers 1
    • Topics 8
    • Posts 69
    • Best 0
    • Controversial 0
    • Groups 0

    Posts made by s00071609

    • Getting MAE MFE for Each Trade

      I was wondering if anyone has been able to get the MAE MFE values for each trades once they are close. MAE- Highest price (or profit) after trade opened. MFE, lowest price (or profit) after trade opened.

      If it is possible to get the highest price from Trade Open Time to Trade Close Time, calculating MAE MFE is possible using Open Price.

      Using highest price (time based) and lowest price (time based) might work on onTrade tab after position closes. Does anyone have any better idea? I am not even sure about the accuracy of highest lowest block (time period). can anyone verify how these blocks work and any solution to get these values.

      posted in Questions & Answers
      S
      s00071609
    • RE: How to check if the last 30 candles are closed above moving average?

      @jstap Its a great way to get number of bars - thanks for the idea. However I wanted to ask if you ever experienced stack overflow error with several of these loops running per tick?

      posted in Questions & Answers
      S
      s00071609
    • RE: example: Save variables into file and read them back [advanced]

      @jstap Great thank you. (int)strArr[0]; seems to work.
      No compile error anymore

      posted in Tutorials by Users
      S
      s00071609
    • RE: example: Save variables into file and read them back [advanced]

      @jstap I have some bool values in fxdreema that i want to save. Instead of strArr[0] that stores string, what could we use to store bool?

      posted in Tutorials by Users
      S
      s00071609
    • RE: example: Save variables into file and read them back [advanced]

      @jstap Hi you suggested to create type bool. Did you mean create variable bool in fxdreema? and then save it as string in file? This gives - error cannot implicitly convert type 'string' to 'bool'. Could you please clarify - currently this is being used:
      xyz= strArr[0]; , what would be the right way to save a bool?

      posted in Tutorials by Users
      S
      s00071609
    • RE: check free-margin before placing order

      @jstap I think the problem is that I don't have the value for Symbol Leverage. Different symbols and broker have different leverage. I can't find any function to get value for leverage for symbol. It does have leverage function but not symbol specific. May be it also needs a custom block

      posted in Questions & Answers
      S
      s00071609
    • RE: check free-margin before placing order

      @jstap Actually C:: is not something I typed (*c::MaxOpenRisk). When I want to multiply a value with a variable - this gets created. For example, *Variable Select in adjust field. Then C:: gets created itself by fxdreema. I have used this in lot of projects and this does not cause any issue, works like normal calculation.

      I will try the suggestion you have given

      posted in Questions & Answers
      S
      s00071609
    • RE: check free-margin before placing order

      @jstap This is from the chart. It won't exceed max risk defined, also will not exceed max lot defined, it auto sets the SL to Low of H [1] and based on this the lots to be opened are calculated. There is also a min size that can be opened to avoid 0.01 type positions.

      If buy button is presses now, it will do nothing as max parameters are met by open positions.

      d98fb8eb-d06e-452c-b5b2-d1d39e3227ee-image.png

      posted in Questions & Answers
      S
      s00071609
    • RE: check free-margin before placing order

      @jstap I am not sure about mq4, i never use it. It works in mq5. The logic of the whole thing is working fine, all blocks work. The only issue is the calculation in custom block:

      double tickvalue = SymbolInfoDouble(tradesymbol,SYMBOL_TRADE_TICK_VALUE);
      double digitF = MathPow(10,SymbolInfoInteger(tradesymbol, SYMBOL_DIGITS));
      Max_lot_margin =Margin_Available*tickvalue/(ask_price*digitF);
      

      It does not throw error but the calcuation is missing something, it gives 1/10th of position. If this is fixed, i think it will work. At least there is no major problem that i am aware of.

      The onchart section does not have much, its all your code + condition check that uses values from ontick.

      This is a new shared link - https://fxdreema.com/shared/rwg1G2uNd

      This is working correctly i think. I have isolated the bocks that calculates margin. Blocks 302 and 303, there are giving wrong values.
      https://fxdreema.com/shared/rwg1G2uNd

      posted in Questions & Answers
      S
      s00071609
    • RE: check free-margin before placing order

      @jstap Here is the link - its one of your buy button project + another project + some of my customization, so it can look messy. The purpose is to have x% of open position based on SL distance of all open position - this is working correctly.

      What is not working is the margin part. Lets say I am at 120% available margin percent, when I hit the buy button, it should never go under 100% margin. So the position size being calculated should consider all Open risk (1%), margin (>100%), and (Position SIze always<max lot size).

      Sometimes what we are trying to do does not make sense to others so, let me explain why:

      With lot of prop firms collapsing, they are resorting to checking how much margin you are using and many have max lot size limit - so if you are under 100% margin, they can flag you as gambler and deny you payout. If you go over Max Lot- you are breached. So this EA keeps the open risk constant, takes care of max lot limit, and margin utilization no matter how many positions are opened.

      https://fxdreema.com/shared/Pu2CnDDzc

      posted in Questions & Answers
      S
      s00071609
    • RE: check free-margin before placing order

      @s00071609 This isn't giving any error. I am a bit confused about the calculation. THe margin_Available is a variable that contains margin available as asigned variabile. The above formula for Max_lot_margin is giving me 1/10th of the correct size.

      I am sure its a small fix thats needed. Any suggestion would be really helpful.

      thanks

      posted in Questions & Answers
      S
      s00071609
    • RE: check free-margin before placing order

      Hi, I was trying to calculate how much lot can the Free Margin can buy but having bit of issue. I want this formula to work in all instrument, FX, indices etc which have different lot sizes. This formula is part of total Open SL calculation for different purpose, but i am trying to use that to get total lot margin can buy,

      For 50 lots, its giving 0.50 lot. Something is missing that I am not able to determine. Any advice would be great

      image.png

      posted in Questions & Answers
      S
      s00071609
    • RE: Value Using Buffer (No Source Code)

      @FiboBlade Large Speculators and Small Speculators

      posted in Questions & Answers
      S
      s00071609
    • RE: Value Using Buffer (No Source Code)

      @jstap thanks this works perfectly to get the percentages.

      posted in Questions & Answers
      S
      s00071609
    • RE: Value Using Buffer (No Source Code)

      @jstap I was trying another indicator that prints the object on chart. Similar objective, ie to get the values. I can get the values from Obj description. What would be a text code to trim this string from left to right - if i can get the 1st 3 values 24% it would do the job. This is just a long short sentiment indicator from fxblue. Useful to go against the crowd that always lose. This value is EURUSD (now strong uptrend, short value is 76%, unbelievable)
      93be68ff-d640-482b-96a8-260d9a2d27f6-image.png

      posted in Questions & Answers
      S
      s00071609
    • RE: Value Using Buffer (No Source Code)

      @jstap I had asked admin another question few weeks ago. No answer. would @roar have some idea

      posted in Questions & Answers
      S
      s00071609
    • RE: Value Using Buffer (No Source Code)

      I have the indicator installed on same platform where EA is being tested. I added inputs -still does not work. Previously, i had noticed input is not needed for it to work.

      Buffer should work if data values exisit? Not sure what would be a solution

      posted in Questions & Answers
      S
      s00071609
    • RE: Value Using Buffer (No Source Code)

      @jstap thanks- Yep it does show the values in data window
      With indicator with no source code, do i need to add the input values in fxdreema? I intend to use defaul values.

      The buffers dont give the value, data window has it

      image.png

      posted in Questions & Answers
      S
      s00071609
    • RE: News EA

      @DragonZueloTrends Have you loaded the indicator FSSI calander. Also note that if there are no news ahead it will show old date, MT5 indicator https://fxssi.com/forex-news-indicator-mt4

      Install the indicator
      Load into chart
      Install this EA, and load it into chart
      Im sure newbies can also do it.

      posted in Questions & Answers
      S
      s00071609
    • RE: Value Using Buffer (No Source Code)

      @jstap May be u meant this window,

      4d7137ec-1d26-4199-a9f4-a4ea6fd350c2-image.png

      posted in Questions & Answers
      S
      s00071609
    • 1
    • 2
    • 3
    • 4
    • 2 / 4