fxDreema

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

    clintk

    @clintk

    0
    Reputation
    522
    Profile views
    12
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    clintk Unfollow Follow

    Latest posts made by clintk

    • RE: How to get USD value of a trade closed at stop loss for use in a variable

      My next question I want to get a trailing stop loss based on a "breakeven" price point using the losses calculation and have come with the following:

      For each position will use the last opened order as a reference point and then I want to check if the current open trades profit is more than the losses and record the current price then I want to add 15 pips for a profit above breakeven

      0_1565903769567_1547b4ed-0020-4185-bddc-59657a931935-image.png

      Im not sure if that is the right way or if using a formula for the current market price less open price of the last order in loop
      Lets say the last opened order as a reference point (ie 0 pips) and my breakeven condition is at 20 pips below that order and I want 15 pips profit from there
      so the trailing stop will need to start from an offset from the open price 35 pips

      0_1565903838428_248247d2-0a58-46a3-9a1d-243cad75eea0-image.png

      Am I on the right track or is there another way to do it?

      posted in Questions & Answers
      C
      clintk
    • RE: How to get USD value of a trade closed at stop loss for use in a variable

      @fxdreema Thanks but a comment wont help as I need to add them in variables so I could do this, Does that look right? Im only working with sell orders to keep it simple so the filter setting are all for sells only

      0_1565902109791_0a93d9c8-9b7d-4337-b039-911f70ddaae9-image.png

      posted in Questions & Answers
      C
      clintk
    • RE: How to get USD value of a trade closed at stop loss for use in a variable

      Ok thanks for the info seems easy enough although in the meantime I got it to work using a "custom MQL code" ontick with the following:

      static int previous_open_positions = 0;
      int current_open_positions = PositionsTotal();
      if(current_open_positions < previous_open_positions) // a position just got closed:
      {
      previous_open_positions = current_open_positions;
      HistorySelect(TimeCurrent()-300, TimeCurrent()); // 5 minutes ago
      int All_Deals = HistoryDealsTotal();
      if(All_Deals < 1) Print("Some nasty shit error has occurred :s");
      // last deal (should be an DEAL_ENTRY_OUT type):
      ulong temp_Ticket = HistoryDealGetTicket(All_Deals-1);
      // here check some validity factors of the position-closing deal
      // (symbol, position ID, even MagicNumber if you care...)
      LAST_TRADE_PROFIT = HistoryDealGetDouble(temp_Ticket , DEAL_PROFIT);
      Print("Last Trade Profit : ", DoubleToString(LAST_TRADE_PROFIT));
      }
      else if(current_open_positions > previous_open_positions) // a position just got opened:
      previous_open_positions = current_open_positions;

      Then I just made the "LAST_TRADE_PROFIT" the variable I can use

      0_1565813067023_0475ea36-2f2f-4a75-a31e-3fd1fda2e049-image.png

      posted in Questions & Answers
      C
      clintk
    • How to get USD value of a trade closed at stop loss for use in a variable

      I have multiple trades open, one trade closed at loss, in the trade history it show a loss for eg: -11.50$
      How can I get that value? Ie I want to add these up and display the total

      All the blocks that do checks for profit or loss are all comparing it <>= etc to some figure, but how do I get that actual amount?

      I want this amount
      0_1565802265569_175a4227-8d14-4d97-b8a9-6f090f3bd254-image.png

      posted in Questions & Answers
      C
      clintk
    • RE: EA...Good or Bad...This can be real?

      looks interesting but at the same time might something weird going on, could you please share a link to what you have done?

      posted in Questions & Answers
      C
      clintk
    • RE: How to attach Buy/Sell arrow scalper and shaved supply and demand with renko chart

      he doesnt have it, is there perhaps another way to use the signals from his indicator?

      posted in Questions & Answers
      C
      clintk
    • RE: How to attach Buy/Sell arrow scalper and shaved supply and demand with renko chart

      from what I can see you uploading the ex4 file and not the source code mq4 file, can you share the mq4 file and I will try get it working for you?

      posted in Questions & Answers
      C
      clintk
    • RE: Trailing stop (group of trades) chart line

      Ok so how can I get it to draw the lines where traling SL would start

      posted in Questions & Answers
      C
      clintk
    • Trailing stop (group of trades) chart line

      I have a issue with Trailing stop (group of trades). Seems to work fine and I see the SL line trailing the group of trades after conditions are met
      In the more setting part it shows selection for a color I assumed to draw a line where the Trailing stop for the group will start but it doesnt matter what color I choose it doesnt draw a line. Is there something else I have to do? Or was my understanding wrong?

      For example looking at the picture attached,
      0_1548969581989_Trailing stop (group of trades).png

      lets say I opened 4 trades all the same lot size and equal pips apart to make it simple
      Trade 1 2 3 are equal spacing with trade 4 right below trade 3
      The break even point should be around the pink line and the Trailing stop (group of trades) with 10 pips profit should be at the blue line
      In more numbers and complicated spacing that line should move around on the chart.

      Ie the concept is to get an idea of where the market needs to go to before the Trailing stop (group of trades) kicks in

      posted in Questions & Answers
      C
      clintk
    • RE: Trace lines open order to close order

      Thanks Ill test it out
      I have a similar issue with Trailing stop (group of trades). Seems to work fine and I see the SL line trailing the group of trades after conditions are met
      In the more setting part it shows selection for a color I assumed to draw a line where the Trailing stop for the group will start but it doesnt matter what color I choose it doesnt draw a line. Is there something else I have to do?

      posted in Questions & Answers
      C
      clintk