fxDreema

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

    Posts made by casebefx

    • RE: The strategy from scratch questions and problems

      For all open trades as a group.
      I have one trade 0.1 - no action becouse it has TP 3 pips.
      I have second trade 0.2 ( 10 pips lower than first trade ) - at this point I want to modify the TP for the first and second trade [first and second trade from Group 0 "empty" and specified market and all trades types BUY ]. I want to modify the TP to the point where the profit from the first and the second will be 0 plus 3 pips.
      Whenwill open the third trade, my EA modify trade first ,second, third to level where profit from this trades is 0 plus 3 pips.
      Similary with next trades...

      I know that I can close this differently, but a greater number of trades it takes longer than closing on TP.
      BE is for SL but I want modify TP.

      Is it some way for my problem ?

      posted in Questions & Answers
      C
      casebefx
    • RE: The strategy from scratch questions and problems

      I have an example of the strategy.

      https://fxdreema.com/shared/7fxXqMded

      I would like to set TP for all open positions on the level where the profit of all open trades is 0 [zero] plus 3 pips. <for BUY>

      If is opened the first trade - nothing happens because there is a TP 3 Pips.
      If is opened a second trade - EA modify TP for first and second trade to level where profit for two trades is zero plus 3 pips.
      It will be the same level of TP for the first and second trades. If there are more trades BUY EA should modify TP for all open trades on the level where profit is 0 plus 3 pips.

      Conversely to sell - profit 0 minus 3 pips.

      How to do this ? Could you give an example ?

      posted in Questions & Answers
      C
      casebefx
    • RE: The strategy from scratch questions and problems

      Hello !

      I'm starting to build a strategy. Some problems have been solved in this topic.
      https://fxdreema.com/forum/viewtopic.php?f=2&t=2452

      However, I have another question:

      I want to open new trade on New Bar , not on new Tick. How can I do this?
      When conditions are met I want to open trade on new Bar (at the beginning of a new bar). Not "Once per bar".
      Part of my strategy must work onTick and the other part be performed on each new Bar.

      I created an example of a strategy where I put the code MQL4 with a different strategy.
      https://fxdreema.com/shared/jH5DPZsVd
      But it does not work.

      Can I get an example of how to do it. Or improve the MQL code in my strategy? Maybe some other way?

      posted in Questions & Answers
      C
      casebefx
    • RE: Hedging trade

      Hi !

      I have another problem.

      I have a strategy that opens trades. This Strategy is managed by the magic number of 1000. If the strategy of MagicNumber 1000 opens 7 trades BUY another strategy opens 1 trades SELL with Group 2 (or group 1 for BUY).
      And now: 7 trades BUY (Magic Number 1000), 1 trades SELL (Group 2)- if SELL trades will be bigger than 1 USD of the last two trades BUY - closes the last two BUY and SELL.

      I created strategy but it does't work. Does not closes 2 last trades and 1 hedge trade. What is problem ?
      Could you fix my strategy or show me example.

      https://fxdreema.com/shared/CSpKQor0c

      posted in Questions & Answers
      C
      casebefx
    • RE: Hedging trade

      Hello

      I have other EA which trades.
      And I created a new "EA hedge" that protects my EA.

      https://fxdreema.com/shared/9yP7HBkyb

      "EA hedge" works in the way that if the pair is to open a certain number of trades (for example, 3 SELL) and the price is above the last trade of 1 pip. EA opens a trade hedge (BUY).

      But I have a question.

      How do to my "EA hedge" opened only transactions with the specified Time Frame?

      The first EA works on the M5 and I would like to "hedge EA" seen only trades with the M5. Not trades M15 - first EA works on M15 too.

      How to do it?

      posted in Questions & Answers
      C
      casebefx
    • RE: Hedging trade

      I dont use strategy on backtest. I test live on demo account.

      I try in another way. Volume size (onTrade)

      https://fxdreema.com/shared/I0DUGxjZ

      but now when loss is -20 USD and opened trades is (for example) BUY 0.1/0.3/0.5 my EA opens SELL 0.5 (when BUY 0.5 is open on candle).

      Is it possible to function "Volume size (lots)" add OrderLots () to include all the trades and not just the last?

      Later I will create EA according to your way. But I thought there is another way. 🙂

      posted in Questions & Answers
      C
      casebefx
    • RE: Hedging trade

      But my EA opens too mauch lots? Function "Longs count" does not count "Now opened long trades" .
      It opens too much lots. Is some bugs or I do something wrong ? 🙂

      posted in Questions & Answers
      C
      casebefx
    • RE: Hedging trade

      But still thought about such a way

      https://fxdreema.com/shared/aUUS027Oc

      But when I have a loss of -20 usd and positions BUY 0.01 / BUY 0.02 / 0.04 BUY EA opens SELL 4.00 lots. Too much. Why?

      Can I try this way? Maybe another function "Trade Statistic"?

      posted in Questions & Answers
      C
      casebefx
    • RE: Hedging trade

      Hello!

      I have a problem with strategy.

      Let me give you an example.
      A strategy open BUY position on a currency pair (for example: BUY 0.1 / BUY 0.2 / BUY 0.40 / BUY 0.50). The sum of these trades is 1.20 lots. The market goes bad and at some point I have a loss, for example, -500 USD.
      When the loss is -500 USD I would like to open a SELL position of value such as trades are BUY. In this case, sum is 1.2 of BUY lots, but the others may be, for example, 2.00 lot (and loss of -500 USD).

      https://fxdreema.com/shared/dBB8SAD0e

      I would like to know how the loss of -500 USD to open opposite trades the same value.

      Or how to open 50 % and 150 % of trades. For example strategy opened 1,00 lot total, and I want open 50 % of total trades (0,5 lot) or 150 % (1,5 lot).

      posted in Questions & Answers
      C
      casebefx
    • RE: Check Loss question

      Just one more question.

      strategy

      http://fxdreema.com/shared/dXN1dMS5b

      I would like to add in the code the " extern ????? Currency = EURJPY " to easily change the currency in the MT4 terminal.
      What should I enter in the code created strategies:

      extern char = EURJPY?
      extern string = EURJPY?

      Please help 🙂

      posted in Questions & Answers
      C
      casebefx
    • RE: Check Loss question

      Thx !

      FxDreema you are great 🙂 !

      Best Regards

      Radoslaw

      posted in Questions & Answers
      C
      casebefx
    • RE: Check Loss question

      Hi

      I have a strategy that works on the chart. This strategy opens trades on several pairs.

      I would like to create a strategy that would close the various currency pairs at a certain loss. Expressed as a percentage of the balance.

      For example: I opened EURUSD, GBPUSD, EURJPY, GBPJPY.
      And on a pair GBPJPY loss is -100 USD. (Balance $ 1000) and it is 10 percent of the Balance.
      And now I want to close only GBPJPY - created such a strategy

      http://fxdreema.com/shared/0K4YuZfnc

      but it closes my every position on GBPJPY, regardless of the loss.
      Where a mistake.

      I trade Armadamarkets and prefix is there GBPJPY

      posted in Questions & Answers
      C
      casebefx
    • RE: Two questions about modify and open position

      Hi

      First question:

      I open my position Group 1. I set TP.

      Then open position Group 2. I set TP.

      Now I want to modify the TP for Group 1 and Group 2 to level of opening Group 1
      or
      to level opening Group 1 plus / minus 5 pips (for example).

      How to do it?

      Another question.

      I have open positions Group 1 (positions first, second ... etc).
      Now I would like to open another position at a distance ( (for example) 10 pips since the last open position (for example, from the second position) of Group 1 That the third position is to be open 10 pips from the last open.

      What block to define the open position - the last position.

      Radek

      posted in Questions & Answers
      C
      casebefx
    • 1
    • 2
    • 3
    • 4
    • 4 / 4