fxDreema

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

    fxboss

    @fxboss

    0
    Reputation
    101
    Profile views
    3
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    fxboss Unfollow Follow

    Latest posts made by fxboss

    • RE: creating an amazing hedging ea

      Thanks admin, and sorry for all the "do this, do that" 🙂 , since am new to your software, i was thinking if I could have you build up one of my strategies, it would prove the full capabilities of your software, so i could then spend my time to indulge in learning how to master it, for my other projects.

      Been trading for over 14yrs now, and am a strategy developer, and trust me, am used to doing the "impossible", and yes, after I have done it, I benefit a lot before it becomes viral and then leads to brokers banning the strategy. A good trader or strategy developer should take all aspects of forex into consideration (fundamentals, technicals, broker, platform, force majeur) and this strategy am working on does exactly that and thats why It sounds impossible.

      I did something similar to spike trading in 2003 and now spike trading is seriously frowned upon when brokers realisez traders were raking in huge profits, when a mere $100 would become over $12,000 in just about 7 spike trades, and this usually happened in the 1st week of every month, of which there were usually about 13 highly spiky trades, so u can imagine...the terror that caused for especially the "bucket shop" brokers.

      this is my second EA so far, and marks the 10 aniversary of my 1st also 🙂 , so am developing another "impossible" EA... Just thought I could speed things up with your software, buh I guess I might go the long way of manual programming all over again! 😞

      Also, yes we do pay for spread, but it is taken like the commision thing, so that keeps our bid and ask price the same, and that is very useful in EA developments.

      Would have loved you to work with me on this project, cos just as you've realised, it would also point out loopholes or extra functions you would need to add to your software to really make it "tick" and stand out among the rest. You win - I win, its all win-win.

      All the same, no problems, thanks so far, and I'll alert you when I finally launch the EA...or better still, you'll find out years later when it has already gone viral and brokers start disallowing pending orders... 😄 .

      FxBO$$
      www.lrng.com.ng

      posted in Questions & Answers
      F
      fxboss
    • RE: creating an amazing hedging ea

      wow! thanks admin. Never really thought it would be possible to even attempt it. You've actually gotten most of it working but Its a bit tricky and am sure you can get it perfectly right with these further inputs from me.

      First lets make some useful assumptions:

      • Lets assume NO SPREAD, so ask is equal to bid.
      • Its a hedging EA, but with some martingale function as to the lot sizing.

      Now to get it right, I'll explain the strategy to you so maybe you can then translate it better into the programming.

      Strategy:
      Imagine you are sitting in from of the PC ready to trade manually. Your constants are:

      TakeProfit = 10
      Stoploss = 30

      1.You place 2 pending orders (Buystop & Sellstop), 0.01 lot size 10 pips on either side of current market price (!this is because we do not know for sure which direction price would go & we don't care either).

      1. When either one activates, you immediatly delete the other, that leaves you with just one open trade, but since we are also not certain for sure that price would go in our favor and hit the TP, we decide to place 2 pending orders of multiple lot sizes on the other side, one at 10pips from the entry price of the current open trade with 2X the lot size of the open trade (0.02), and the other at 20pips from the entry price of the current open trade with 4X the lot size of the open trade (0.04).

      2. So incase price instead of going directly to hit the TP of the open trade, decides to go the negative way, upon 10pips below the open price of the current trade (say A1), our 0.02 lot size pending order would be activated and if keeps going that direction, it would hit TP after 10pips, at that point our 0.04 lotsize pending order would now be activated. And if price keeps going that way, then 10pips after, it would also hit the TP of our 0.04 lotsize trade which coincidentally is also the 30 pips stoploss of our very first trade to activate, which didnt go our way. When that happens, all trades are closed, so there wouldnt be any open trades left and we start allover again, this time from the initial lot size of 0.01 and 2 pending orders 10pips on either side of price.

      In summary,
      Imagine it was our BUYSTOP (A1) that had activated in the first place with lot size of 0.01, then we delete the other SELLSTOP (B1) and replace it with 2 other SELLSTOPS (B2 & B3), B2 is place at 10 pips from entry price of A1 with double the lot size of A1 which is 0.02, and B3 is placed 10 pips from B2, which is 20pips from A1, with double the lot size of B2 and quadripple the lot size of A1, which is 0.04.

      So if things go negative on us and price goes down, when we are 10pips negative on A1, B2 would activate, and when we are 20pips negative on A1, B2 would have hit its TP of 10pips, and B3 would activate, and when we are 30pips negative on A1 which is also the stoploss of A1, B3 would have hit its TP of 10pips and ALL trades would have closed. Then the cycle can repeat itself again.

      So strategically we would have lost say maybe 30 cents on A1 cos of 0.01 lotsize, but gained 20 cents on B2 cos of 0.02 lotsize, and 40 cents on B3 cos of 0.04 lot size. So when we do the maths, (40 + 20)-30 = 30 cents profit.
      So even when price didnt go our initial upwards direction and lock in 10 cents profit for our 0.01 trade, we even made more profit on the reverse.

      Remember all trades have same 10pips takeprofit and 30pips stoploss, its the LOT SIZING that does the MAGIC.

      That is why it is SO IMPORTANT that if you can program it in such a way that before a new pending order is place, it checks what the lot size of the previously opened trade is and multiplies that by 2 to get the pending order placed at 10pips, and then by 4 to get the pending order placed at 20pips.

      Conclusion.
      You have already done a great job cos it places the orders as it should, you just need to modify it to place the right lotsizes, and also when you study the above strategy well, you would just realize clearly that the trades cycle does not carry on forever, cos even though on quite rangy markets, our lotsizes could grow large, there must be a point when there would be no open trades, that point where the stoploss of one trade equals the tp of the second opposing pending order, and thats when the cycle should start allover again from 0.01 lotsize.

      Please do add this current information into the already made program you've done and lets see what the end product would be like. Thanks sooo much. Pls do ask if you need any information or further clarification. Thank you.

      P.S. rather than make new cycle start by 00:00hrs, make it start immediately upon attaching EA to chart. Thank you.

      posted in Questions & Answers
      F
      fxboss
    • RE: creating an amazing hedging ea

      Hi, could you help show how to create this simple strategy into an ea using your software?

      The strategy would place ONLY pending orders (buystop and sellstop), modify TP upon certain conditions, and delete opposite orders on certain conditions too, also each subsequent order will have double the lot size of the previous (almost like a martingale).

      Here are the constants:
      Stop loss = 30
      Take Profit = 10
      Lot size = 0.01
      Lot size multiplier = 2

      Strategy: (for easier clarity, i would tagged buystops as A1, A2, etc and sellstops as B1, B2, etc)

      1. check if no open trades, then...
      2. place 2 pending orders (A1 & B1), 10 pips away from current market price, with equal lotsize of 0.01
      3. If A1 activates, delete B1 and replace with 2 sellstop orders (B2=10pips from A1 entry price, and B3=20pips from A1 entry price)
      4. If TP of A1 is hit, then delete B2 and B3 and start from step one again.
        Else,
      5. If B2 activates, modify TP of A1 to entry price, then place 2 buystop orders (A2=10 pips from B2 entry price, and A3=20pips from B2 entry price)
      6. If TP of B2 is hit and B3 is activated, delete A2 and A3, replace with A4=10pips from B3, and A5=20pips from B3
      7. If TP of B3 is hit, delete A4 and A5

      this goes on until a point when the stoploss of one order would be the takeprofit of the other, and when that hapens, there would be no open trades, so the lotsize is reset as it starts allover from step one again.

      pls do assist me on this...if u need any information...do let me know.

      P.S. presume that spread is zero(0). so u can use the bid price for all programing. thank you.

      posted in Questions & Answers
      F
      fxboss