Results 1 to 5 of 5
 1 Attachment(s)    

Thread: Closing bar system

  1. #1

    Wink Closing bar system

    Hi!
    I have a trading strategy I would like to try out. Maybe you can code this:

    Buy:

    1. "a" higher closings (last tick each bar) within "b" bars triggers a buy signal. The EA goes long.

    2. If the price drops more than "c" pips another long position is taken, until "d" no of positions are opened.

    3. On the other hand, if price keep climbing the first position is held until stopped out by trailing stop.

    4. All open orders have a trailing stoploss of "e" pips, and a T/P of "f" pips



    Sell:

    1. "a" lower closings (last tick each bar) within "b" bars triggers a sell signal. The EA goes short.

    2. If the price rises more than "c" pips another short position is taken, until "d" no of positions are opened.

    3. On the other hand, if price keep falling the first position is held until stopped out by trailing stop.

    4. All open orders have a trailing stoploss of "e" pips, and a T/P of "f" pips

    The EA should not close any open positions itself, but rather leave it to the
    traling stoploss and T/P.
    This enables it to have hedge positions open.
    All the variables above should be accessible for optimization, and the EA should be able to work in any time frame.

    thanks magid

  2. #2

    Default

    Hello,

    Please post the results of your manual trading of this system as when I look at the charts this system does not appear to be profitable.

    Regards,
    Jeff

    Quote Originally Posted by magidkaramy View Post
    Hi!
    I have a trading strategy I would like to try out. Maybe you can code this:

    Buy:

    1. "a" higher closings (last tick each bar) within "b" bars triggers a buy signal. The EA goes long.

    2. If the price drops more than "c" pips another long position is taken, until "d" no of positions are opened.

    3. On the other hand, if price keep climbing the first position is held until stopped out by trailing stop.

    4. All open orders have a trailing stoploss of "e" pips, and a T/P of "f" pips



    Sell:

    1. "a" lower closings (last tick each bar) within "b" bars triggers a sell signal. The EA goes short.

    2. If the price rises more than "c" pips another short position is taken, until "d" no of positions are opened.

    3. On the other hand, if price keep falling the first position is held until stopped out by trailing stop.

    4. All open orders have a trailing stoploss of "e" pips, and a T/P of "f" pips

    The EA should not close any open positions itself, but rather leave it to the
    traling stoploss and T/P.
    This enables it to have hedge positions open.
    All the variables above should be accessible for optimization, and the EA should be able to work in any time frame.

    thanks magid

  3. #3

    Default

    this is my idea i wish ea for it

  4. #4
    Administrator funyoo's Avatar
    Join Date
    Sep 2008
    Posts
    7,003

    Default

    Quote Originally Posted by magidkaramy View Post
    this is my idea i wish ea for it
    AZJeff is right, be sure to have tested the system before to submit it. I can't program all the system of the world.

    I have not enough time to study that part : "within "b" bars". I suggest you to contact a professional programmer.
    Attached Files Attached Files

  5. #5

    Default

    thank so much

Similar Threads

  1. Closing all orders on all charts
    By tal1n in forum MQL programming
    Replies: 3
    Last Post: 06-17-2011, 10:21
  2. EA need code for closing
    By himnoor in forum MQL programming
    Replies: 2
    Last Post: 01-11-2011, 17:09
  3. Closing orders
    By szmvscla in forum MQL programming
    Replies: 0
    Last Post: 10-20-2009, 05:40
  4. Closing a partial trade
    By ppentz in forum MQL programming
    Replies: 4
    Last Post: 07-27-2009, 11:08

Tags for this Thread

closing, hedge, leave, manual, manual trading, pips, profitable, programmer, signal, stoploss, strategy, study, system, time, trading, trailing

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •