fxDreema

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

    Posts made by cfabian

    • RE: Break even for a group of trades

      Still having problems to understand how to set this up. Sorry.

      For simplicity, how can I set up a single BE and Trail stop that applies to one or multiple trades in the same group?

      One that sets a SL of 20 pips, for all open trades (either 1 or multiple)
      That moves all the stops to BE +1, when all open trades in the group are in profit of +20
      When reaching 50 pips of profit from all trades in the group, trail stop, that only allows 30% drawdown from the maximum profit.

      Of course, when a new trade kicks in, everything gets calculated again.

      Thanks FxDreema

      __I think you are missing something important here - each of these blocks will run on every tick. You probably think that block 21 must finish it's work before going to block 22, but this is not the case. Blocks 21, 22 and 23 always pass, even if there is no trade at all.

      Trailing Stop is the distance of the SL relative to the current price.
      Trailing Step is how often to move SL. This value is normally much lower than Trailing Stop.
      Trailing Start is the profit that the trade must make before doing something with it's SL. This is distance relative to the Open Price of the trade. If the price is above this level, then SL can move, otherwise not.

      Again, no block waits for other block to do it's job. Especially these blocks, they pass every time even if they did nothing at all. Inside each of them there is a loop that iterates through all trades and moves (or not) their SL. There blocks does not communicate. Each of them is doing it's job and does not care what is connected after[/quote:1fc7whih]

      posted in Questions & Answers
      C
      cfabian
    • RE: Break even for a group of trades

      Quite franqly I didn't get your answer.

      Those values are for CFD. But anyways I don't believe what pair you use it on, as an EA can be universal. Still changed those values setting "trailstop mode" to something less than "trail start".

      Anyways, have been playing with multiple connections and ways to do this, but none has worked out. What I need to do with my multiple attempts is this:

      • When have 1 trade, have its SL at 20 pips value. Then move it to BE + 1 when 15 pips in profit.
      • When a second trade or more kicks in in same direction and same pair, have a TrailStop and BE for the whole basket (group of trades). Having that BE when the basket profit is 20 pips, and trail in 15 pip increments.

      Thanks for your help

      __"If trade" will probably speed up the backtest when there are no trades at all, nothining more. Each of the following blocks internally iterates through all available trades at the moment, which means that if there are no trades, nothing will happen (and because of that "If trade" is not necesarry).

      When many of these blocks are used, who knows what is going to happen. I don't understand these values - 2500 and 5000 - this is probably not for something like EURUSD.

      Otherwise here is how the trailing stop works - viewtopic.php?f=2&t=3330&p=10795#p10785[/quote:4u94vasu]

      posted in Questions & Answers
      C
      cfabian
    • RE: Optional condition filter

      If have a set of conditions for a trade, how can I make it possible to use them as an "optional" setting? Something like if you are running your EA and if go to settings, you select "true or false" if want to use MA crossing, and same "true or false" to use the condition of MACD > 50, for example? So that the EA only looks for the conditions that are set to true in the settings?

      Thanks

      posted in Questions & Answers
      C
      cfabian
    • RE: Break even for a group of trades

      I have configured this setting for a BE and trainling stop for a group of trades,separating buys from sells, but it is not making a thing.
      According to what I understood, my settings are that if a group of buy trades from the same pair, achieves 20 pips in profit, it moves all stops to the value that gets a break even for all trades.

      It confuses me how to use "trail stop mode" and "trail step is". But still with this configuration I was expectig stops moved to BE value of all buys of that pair basket. In my demo have 7 trades with 110 pips profit in total, but no single SL has moved.

      Have same settings for strailing stop for a group of trades for sells.

      By the way, the block "if trade" is first connected to a "break even each trade", so that it sets the BE for each trade after few pips. Then it is connected to "trailing stop group of trades" which is intended to move all SL after the overall profit of the group trades of this pair has reached X amount of pips. So, this way I make my initial trades safer by moving them to BE.

      Attached an image.

      Thanks for your help.

      __I will probably not make such a block, but you can try with the trailing stop block. As you know, BE is similar to TS (trailing stop) and the regular TS block can be set to work as BE.

      I think it was something like this. Set "Start" to the profit where SL must be modified. For example 10 pips. Set "Stop" to the same value. Set "Step" to some big value. Something like this: https://fxdreema.com/shared/dfaqAlMpc[/quote:48p2wjao]

      ......
      trailstop.jpg

      posted in Questions & Answers
      C
      cfabian
    • RE: indicator direction change

      Hi again...
      I am trying to define when stochs is changing its slope. Meaning something like value in candle -1 is greater than candle -2, and value in candle -2 is lower or equal than that of candle -3.

      I thought that the " X > " could work for this case, but it does not detect a thing. Image attached.

      My question is if this is well defined, or how you recommend to do so? Or should I create 2 blocks, one to compare stoch values from cand -1 vs cand -2, and other from cand -2 vs cand -3?

      Thanks

      cross.png

      ......
      cross.png

      posted in Questions & Answers
      C
      cfabian
    • RE: Toggle between trading strategy

      I'm trying to use the constants example you sent, but it doesn't compile, send this error:

      input double inp0_ProfitMoney = c::DayTarget;

      I assume it is the input type, that by default fxdreema uses "double", but not sure if I should change it to another type in the editor, or how to do so in fxdreema?

      By the way... when you right click on a block, there is an "ON/OFF" option that if selected puts the block in red. What is this option for? Does it enable an "ON/OFF" input for that block in the EA settings, so I can turn it while running the EA? This way can I toggle strategies?

      Thanks and regards

      __It depends. There are multiple ways to store state in the memory and then check it. Variables, Flags, Toggle blocks. All of these are doing the same stuff deep down in the code - setting value in a variable and then reading it's value. Do it in the way you prefer.

      Status is this blue text near the spread meter on the chart. What it says can be changed.

      Block numbers can also be text values, but use only letters, numbers and/or _. Don't use empty space or non-latin characters.

      Here is about EA settings - https://fxdreema.com/demo/mt4-constants[/quote:2kkpr323]

      posted in Questions & Answers
      C
      cfabian
    • RE: Once per bar after signal

      By cycle I mean from start to end of the crossover, but my only valid signal is the crossover (closed candle). If I use > or < it will be a permanent signal during the whole cycle, while I only need fresh signals right after crossing. Once per bar for 5 bars right after crossing. Not in the middle of the cycle.

      Thanks

      __I don't understand this "crossing cycle". If you want to do something on each candle after crossover until the next opposite crossover comes, you know, you don't even care about crossovers. If MAx crosses MAy above, then until the next opposite crossover you can be sure that MAx is > MAy. So you can just use > or <[/quote:oit0s6ug]

      posted in Questions & Answers
      C
      cfabian
    • RE: Once per bar after signal

      Thank you... but still not clear to me...

      For example, how to set up that only after a fresh cross happens (closed bars, meaning cross in candle -1), then it starts to place trades once per candle? Not in the middle of the run, but when it starts a new "crossing cycle"?

      Thanks

      __Don't change cross width if you don't understand it.

      This is the example about Once per bar and how it can be connected with Condition, it also contains description - https://fxdreema.com/demo/mt4-once-per-bar[/quote:143wfbmy]

      posted in Questions & Answers
      C
      cfabian
    • RE: Grid trades

      Thank you.... it will be a great addition for grid trades.

      So, in your example, the offset -25 will be to "pass" the minimum distance between market and stops for buys, correct? In this case the very first trade wouldn´t it be a "limit" one as is below market?

      For sells the offset should be possitive 25, or negative as well?

      How many tries it gives to put these pending orders? Or it keeps trying until gets filled? As the first one may not be filled immediately.

      Would it put the rest of the pendings in case the first one doesn´t get filled?

      __I will eventually add this option in these blocks, if I don't forget I will try tomorrow. Otherwise there is a block "Round numbers detector", but it is to be used on every tick, it detects the new round price when that price actually happens. You can use it to open trades at round number prices.

      Yes, a trade can be opened with the pending order if you set it up in a way so the first order's OpenPrice is the current price - Ask for Buys and Bid for Sells. If you want to try it, add fresh "Buy pending orders in grid" and set the Price offset to -25 while keeping the Grid size to 25[/quote:76g62m2u]

      posted in Questions & Answers
      C
      cfabian
    • RE: Grid trades

      I want to use grid fuction to place stop orders when a condition is met.
      My issue is that I´d like to place such orders at specific price levels, say at 10, 20 and 30, but, when I use grid size of 10, it uses that distance beginning from the very fisrt trade placed after condition met. So, the first order most of the times enters bit late due slipage and spread (for the buys).

      What can I do so that the grid places the stops at round 10´s numbers and not get affected and carry on the slipage on all the grid?

      Can the very first order be openned with market orders? Because the first trade if want it stop order, it may not be filled as it requires more space between stop value and current price.

      Thanks

      posted in Questions & Answers
      C
      cfabian
    • RE: Toggle between trading strategy

      Hi again,
      If want to create 2 options of trading, how should I program it so I can toggle between them?

      I have 1 system say for conditions1, and other for conditions2. Should I just use the "toggle blocks" fuction on top of them and connect them, and just put the 2 blocks ID number in it? Then in settings I just have to select ID1 or ID2 to make it work with either of them?

      What is the "change status to" for within toggle option (and all function options)?

      Is it possible to select the above mentioned trading option with a real name from a dropdown menu instead of typing the ID number?

      I also want to ask how to create an additional signal filter, but that can be turned on/off or yes/no from the EA settings?

      Thanks

      posted in Questions & Answers
      C
      cfabian
    • RE: Once per bar after signal

      Hello,
      If need a crossover to validate my entry signals (fresh crossover, meaning in candle -1, recently closed), and then want to activate the once per bar, how should this be configured and connected? My guess is that if the EA has "once per bar" connected to the "crossover condition", it may cause errors or wont work as after say 2,3,4 candles, all of them will be apart from the crossing candle, thus that crossing is not candle -1 anymore.

      I thought of using a larger "cross width" value, but then it wont respect the need of having a fresh crossover, and could enter in late trades.

      Thanks for your help

      posted in Questions & Answers
      C
      cfabian
    • RE: Renko Charts and once per bar function

      Hello...
      I'm having issues making an EA work with renko offline charts. How did you make it possible?

      Thanks

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

      THANKS[/quote:2915fvtz]

      posted in Questions & Answers
      C
      cfabian
    • 1
    • 2
    • 3
    • 3 / 3