fxDreema

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

    Posts made by kevin

    • RE: Specify crossover candle?

      Ok, I have managed to get an indicator that paints an arrow above or below the candle where crossover happened. See the picture attached: http://imgur.com/ueOksdT

      Now, the thing is that I wonder which blocks to use to create the condition I would like. That is:

      Long - Condition 1: EMA 10 > EMA 20
      Condition 2: Bid x> High of the candle where the arrow (green one) is painted

      How do I go about with the second condition? Firstly I though of using the block indicator is visible... But that does not specifically select the candle where the arrow is painted. Moreover, the arrow is NOT painted exactly at the high/low of the candles, thus using the condition bid x> indicator is not an option as well. Help please?

      Thank you.

      posted in Questions & Answers
      K
      kevin
    • RE: Specify crossover candle?

      __I surrender with this question 🙂

      The only block that does iterate through candles and comparing indicator values is "Indicator moves within limits", but this block does not output anything. The other way to get some information is via "More options" when you are using custom indicators, because only for custom indicators there are more options in "More options" 🙂 The other way is to use "Loop (pass N times)", but because this block is too basic and there is no break mechanism, I would not use it for this case.

      What else... you can set some Variable and remember the price when the crossover happens, but when the EA is restarted, this information will be lost. And this information works only in forward direction.

      I think the best would be to have some custom indicator that outputs the information you need. Unfortunately fxDreema cannot build indicators :)[/quote:2qxos7uj]

      😄 Well, thank you anyway. Now that you mention custom indicators, I may try to have something like an arrow pointing to the candle of the crossover. When price crosses for example below the low of that candle (and all the other conditions are met aswell), trigger sell order. I just need to figure out where to get such an indi 😉

      posted in Questions & Answers
      K
      kevin
    • RE: Specify crossover candle?

      Greetings,

      Please, I would like to ask how to specify the candle at which MA's have crossed over? More specifically, Im trying to achieve the following condition:

      Daily timeframe, MA 10 < MA 20, If price is less than the low of the day of crossover, sell.

      Note, that price may wander off for several days and not reach that point, until it just gets there eventually. Thus, specifying candles by candle ID is useless in this case, because it may take several days until it reaches that point. Any ideas please?

      Thank you.

      posted in Questions & Answers
      K
      kevin
    • RE: Modify (Move) Pending Order to certain price level

      After weeks of trying and testing various versions, it now opens orders over orders, like I wanted but not in the correct amount. This is what I have: https://fxdreema.com/shared/W4vgNMRkc. I have reached the conclusion that it just does not work

      posted in Questions & Answers
      K
      kevin
    • RE: Modify (Move) Pending Order to certain price level

      __Try this: http://prntscr.com/bvf9pn Or better this: http://prntscr.com/bvfaee I didn't tried it, but I guess it will work[/quote:1b5qjvpb]

      Ok, I will test it out.

      When Im thinking about it, I logically would like to use blocks under "On Trade" - "Trade created" - because this is when I would like the EA to place 1 COUNTER pending order on each of the opposite levels. (Totaling 3 pending orders, because 3 levels)

      How do I make these pending orders EXACTLY on the same price level as the initial ones though? That is what I would like to solve.

      posted in Questions & Answers
      K
      kevin
    • RE: Modify (Move) Pending Order to certain price level

      Please read the post above as well 🙂

      TEST REPORT:
      Positives: Orders open exactly at the levels where they should. (What this means that "order on order" is truly precisely placed to the point)

      Negatives: They do not open in the correct count (now, too many orders open) All is caused by the "For each pending order" block.

      Please, take the time to go through these pictures thoroughly. It will help you understand the problem better.
      This is a scenario where price goes up through all three buy levels.
      What EA does WRONG: http://imgur.com/a/VZiCa

      What EA should do CORRECTLY: http://imgur.com/a/3p9NC

      Dont get confused now, here is the continuation. Remember, in the above scenario, price went up through all three buy levels. Now, imagine that it reverses, and goes through all three SELL levels. In the picture, take a look at the numbering (order) of actions (In green circles)
      Picture here: http://imgur.com/a/Zsqly

      Basically, the blocks "For Each pending order" (Blocks 7 and 10) are causing a little bit of chaos.
      __ The CORRECT WAY IS:
      Each time a position is opened on a certain level, 1 COUNTER pending order is created on each of the opposite levels (3 Counter pending orders in total) __

      posted in Questions & Answers
      K
      kevin
    • RE: Modify (Move) Pending Order to certain price level

      Well, these blocks you gave me really are a step forward. However, there is a slight error they cause. That is, when price hits for example the 1st sell level - a sell position opens (logically) - and the EA creates 3 Buy pending orders at the buy levels. That is great.

      But when price reverses, hits the 1st BUY Level, the EA creates SELL pending orders only at the lower two levels - misses out the 1st one.

      I think this is because of the "For each pending order" blocks, particularly 7 and 10. When price reverses from the opened sell position and hits BUY Level, the three sell levels are now like this: 1st Sell position 2nd Sell pending order 3rd Sell pending order. Therefore, the EA creates sell pending orders only at the lower two levels (Because "For Each pending order" - Level 1 Sell is no longer a pending order but an opened position).

      Picture here: http://imgur.com/a/T4Wjp (NOTE: See the small Arrows created by the orders)

      posted in Questions & Answers
      K
      kevin
    • RE: Modify (Move) Pending Order to certain price level

      Thank you! I shall test this and report back 🙂

      I think you got what it is all about 🙂 This strategy is a cleverly hidden martingale. Maybe you now see how the orders are multiplying on either side. So as long as there is enough money, I will always win, I even proved it mathematically, I did the calculations. Also, this will work perfectly in a trending market, because I need the price to reach TP/SL ASAP. In a ranging market, I may expect a call from Mr.Margin. However, I aim to make a certain amount of profit, then withdraw and start again, as far as money-management goes. So yeah, this is what Im playing with for weeks now 😄

      I would also like to add that I appreciate your approach, time and help 🙂 Your explanations are great and helpful

      posted in Questions & Answers
      K
      kevin
    • RE: Modify (Move) Pending Order to certain price level

      __And what happens if all 3 Buy orders are turned into trades and you have 0 Buy orders and 9 Sell orders? Is the strategy like endless loop of doing the same stuff again and again (creating orders again and again), or there is only 1 iteration and the maximum number of pending orders at a time is 9?[/quote😠zwlo6lj]

      There is no limit to creation of orders (OR actually there is, that being your margin - which is the only drawback of the strategy). So yes, it is an endless loop of creating orders. Here, this is an example of what happens when the price goes UP, DOWN and all the way UP again, through all the levels. http://imgur.com/I6PaIS3

      posted in Questions & Answers
      K
      kevin
    • RE: Modify (Move) Pending Order to certain price level

      __But you can delete them 😮

      I don't know what to tell you. This is only 1 step that you are explaining. But if there are more steps, the way to do things can be very different. Otherwise in my latest example I think I'm showing how to put 3 orders over 3 another orders. Of course, mine are all from the same Group.[/quote:16o3hnri]

      Ok, I will write the steps and hopefully, you will have the courage and enthusiasm to go through them all - hence, my PMs 🙂

      1. Create Initial Grid
        1.1) 3 STARTING buy pending orders above mid price in 5 pip increments (TP of all the buy pending orders 5 pips above the pending orders/ SL of sell pending orders at this level too)
        1.2) 3 STARTING sell pending orders below mid price in 5 pip increments (TP of all sell pending orders 5 pips below the pending orders/ SL of all buy pending orders at this level too)

      This was the initial grid. Now here is where the fun starts.

      When price hits 1st buy pending order level - ea should create another 3 sell pending orders at the same levels where the STARTING SELL pending orders are. When price hits 2nd buy pending order level - again, ea creates another 3 sell pending orders at the STARTING SELL levels. Same applied to 3rd buy pending order level - ea places another 3 sell pending orders at the STARTING sell levels.

      The reverse happens when price triggers sell pending orders - 1st level - ea places 3 buy pending orders at the STARTING BUYS levels. Same applies when it hits 2nd and 3rd level.

      For each pending order at that particular level, the ea will create 3 COUNTER pending orders at the opposite levels.
      This it it, I think I described it as best as I could. Picture here: http://imgur.com/a5hzTlB

      Please, it may seem complex, but it is not THAT complicated. It definitely isnt rocket science and I would be grateful if this amazing software would build this nice EA 🙂

      posted in Questions & Answers
      K
      kevin
    • RE: Modify (Move) Pending Order to certain price level

      __You want to put 3 new sell orders above the existing 3 pending orders 😕 Why not deleting them and make only 3 orders with bigget lot size[/quote:1b84imrr]

      That is the point, I cannot delete them, I have to put new orders there and keep the lotsize equal at all times. It is the beauty of the EA 🙂 How will I manage to do that?

      posted in Questions & Answers
      K
      kevin
    • RE: Modify (Move) Pending Order to certain price level

      Simply this. This shows how I have the pending orders grouped currently, and what the EA should do.

      http://imgur.com/AFZHEig

      posted in Questions & Answers
      K
      kevin
    • RE: Modify (Move) Pending Order to certain price level

      __Ok, orders over orders. Here is some example where I create 3 Buy pending orders and then I open another 3 Sell orders on top - https://fxdreema.com/shared/pQBJHt5ud[/quote:3fnqikdz]

      Well now this is interesting, I will try something and report back, even though I worry a little because it is a little more complex than that... I have sent you a PM though. Thank you.

      posted in Questions & Answers
      K
      kevin
    • RE: Modify (Move) Pending Order to certain price level

      __If you try to put an order at the same price where it's currently placed, then nothing should happen anyway, so you don't have to ask.

      I think that your EA is overcomplicated, because it has many similar groups of blocks. Anyway, now the problem is that the real names of the objects are not exactly what you want, so try with these settings: http://prntscr.com/btfe8w[/quote:1clqsoc3]

      I believe the EA is perfectly logical and organized.
      Im not sure if we understand each other though. Its not about trying to put an order at the same price where its currently placed. Its about placing another, separate order at that price. I need to have several orders at the very same price level, on top of each other. Take a look at this picture: http://imgur.com/iHWkcSH

      The blue lines represent an initial set of pending orders. Now, another set of pending orders should be created on top of them, but it isnt. It is a little bit "displaced". I would like to move these orders to the exact same level as the blue lines. For some reason, slide order and even trailing pending orders dont really do anything, or at least, maybe I am using them wrong. This is what I would need help fixing.

      posted in Questions & Answers
      K
      kevin
    • RE: Modify (Move) Pending Order to certain price level

      Well, I tested the slide order and it does not seem to do anything, but (I guess) that is because it does not have a specified level. So, the question is that, is there any way to specify the price level of a pending order in fxdreema? Basically, in code terms, what I need is this:

      IF pending order price level != (does not equal) initial pending order price level, THEN: move pending order to the price level of the initial pending order.

      Any ideas how to get this done please? Thanks.

      posted in Questions & Answers
      K
      kevin
    • RE: Modify (Move) Pending Order to certain price level

      Ok, thank you. I will try to play with this a little more, test and see how it goes, if anything, I will probably report back here. Thank you very much for your support, Im enjoying fxdreema a lot! 🙂

      posted in Questions & Answers
      K
      kevin
    • RE: Modify (Move) Pending Order to certain price level

      __This EA doesn't even export. Better don't use these checkboxes when you have Constants in the input field. Constants are already input parameters, there is no need to make them input parameters twice

      These are the blocks for modifying pending orders. I don't know other blocks for that now that I'm thinking[/quote:33mgi4yo]

      Yes, Yes, Ive had numbers in there before I shared it with you and forgot to uncheck it. It should export now. The constants are there to replace the numbers and define the grid size, respectively levels. Could these constants also be used as the level to which the pending order would be "slid" ? Or should I make them as variables? Also, in the slide order block, what is the "Positive direction for SELL" for? And why would I include "slide with pips" if I have a specific level to which I want it to move. I dont know how many pips will the pending order be deviated, and wether above or below the level because slippage is unpredictable 😛

      posted in Questions & Answers
      K
      kevin
    • RE: Modify (Move) Pending Order to certain price level

      __But this is the block who can modify the position of pending orders 🙂 You set the open price and orders should be moved at that price. Maybe the block should be named "modify pending order", but "slide order" works for me

      The other block who can move pending orders is Trailing pending orders.[/quote:221glj9i]

      Yes, Ive meddled with the slide order and trail pending orders for a while. But how do I define the open price? I need that open price to be equal to the levels of the grid, that is Level (Group) 1,2,3 of buys and Level (Group) 1,2,3 of sells (Look at the attached imgur picture please, I think that should clarify a lot). If I use a variable that defines the grid size, can this variable be also used to define the price level as the initial one where I want the orders to be placed, in the block "slide order" under "price relative to custom price level" ?

      Im sharing it for you to see how its built. Here: https://fxdreema.com/shared/FaLwS0nAd

      P.S. I know it a little complicated and Im too fast in the explanations but I really appreciate your help and solving this would make the ea much more efficient. Thank you very much.

      posted in Questions & Answers
      K
      kevin
    • RE: Modify (Move) Pending Order to certain price level

      __For each Pending Order -> slide order

      But why... I don't think that slippage happens on pending orders, why don't you just place them on the correct price from the first time[/quote:2s0ydv5n]

      I will describe my project a little more to explain where the slippage occurs. Basically, I open three buy pending orders above the price in a grid with 5 pip increments and three sell pending orders below the price with a 5 pip increment. The stoploss of all buy orders is 5 pips below the last sell pending order and the take profit 5 pips above the highest buy pending order (vice versa for sells).

      Now, as the price moves and triggers, lets say buy pending order 1, the EA creates another 3 sell pending orders at the levels of the initial sell pending orders, and the same applies when it hits buy pending orders at level 2 and level 3. Basically, the EA multiplies positions to the other side, each time a pending order is hit (triggered). This is basically a cleverly hidden martingale, but lets not discuss the strategy drawbacks right now.

      The problem is, when price triggers e.g. buy pending order, slippage occurs and thus the ea misplaces the 3 sell pending orders by a small bit. Therefore, I would like to adjust these displaced pending orders to the initial level, where they should be. I dont think that blocks for each pending order -> slide order are correct, because I dont know if the order will be displaced up or down. I would need something like truly, modify pending order -> move to certain level.

      It is possible to see how the grid gets thicker because of misplaced pending orders by a small bit each time. I would like to keep them all stacked at the initial levels. http://imgur.com/LhdV3SV

      posted in Questions & Answers
      K
      kevin
    • RE: Modify (Move) Pending Order to certain price level

      I cant really see how to specify a price level and then apply a modify pending order block to move the pending order to that price level. Help please?

      If necessary, I can describe the project more...

      posted in Questions & Answers
      K
      kevin
    • 1
    • 2
    • 1 / 2