Job finished

Execution time 4 days
Feedback from customer
Thank you Bartlomiej, Very effective. Very efficient. Pleasure to have worked with you. Until next time, take care. Giuseppe

Specification

Shifting MA's

MQL4
Any currency pair

Any time frame

 Slippage function

Spread function

LONG:  (Must have its own input fields as the variables/criteria will be different to SHORT):
MA Period - input field
MA Shift - input field

MA Method - input field
MA Apply to - input field

Max Deals for Consecutive Time Frames - input field (example 5 or 15)

Only one Buy open within the same Time Frame  
Lot size - input field
Take Profit - input field

Trailing stop - input field (function on each order separately)
Trailing stop - On/Off selection
PM = Previous Move and must always be a positive value.

-       If previous candle was up, the “Move” will be Close less Open

-       Example Close = 1300 & Open = 1290 so “Move” = 10 (positive)

-       If previous candle was down, the “Move” will be Close less Open * -1

-        Example Close = 1300 & Open = 1315 so “Move” = (-15 * -1) (positive)



Methodology - BUY:
A) Open Buy’s in the following order:

1.    Previous candle close is below previous MA, and

Current High moves higher than current MA + PM, then

Open at level current MA + Previous Move

Example:

-       Previous Close is 1900

-       Previous MA is 2000

-       Previous Move (PM) is 20

-       Current MA is 2010

-       Current High is 2040

-       Open Buy at 2030 (2010 + 20)

2.    Buy if No 1 above did not trigger

Previous candle close is below previous MA, and

Current High moves lower than current MA + PM, and

Current candle closes above current MA, then

Open at close of current candle

Example:

-       Previous Close is 1900

-       Previous MA is 2000

-       Previous Move (PM) is 20

-       Current MA is 2010

-       Current High is 2025

-       Current Close is at 2022

-       Open Buy at 2022

 

3.    Buy if No 1 or No 2 above has already triggered, and

Current candle closes above or equal to Current MA

Repeat for every candle until “Max Consecutive Deals” is reached

 

 

B) Close when one of the following is triggered whichever first:

  1.  Take Profit, OR
  2.  Stop Loss (has two criteria - see next step)

Two criteria for Stop Loss

- Current Low < (Previous Close less Previous Move), AND

Current Low < Current MA, OR


 3. Trailing Stop, OR
 4.     Price closes below current MA

     

    SHORT  (Must have its own input fields as the variable/criteria will be different to LONG):
    MA Period - input field
    MA Shift - input field

    MA Method - input field
    MA Apply to - input field

    Max Deals for Consecutive Time Frames - input field (example 5 or 15)
    Only one Sell open within the same Time Frame  
    Lot size - input field
    Take Profit - input field

    Trailing stop - input field (function on each order separately)

    Trailing stop - On/Off selection

    Methodology:
    Same as for LONG but just to the opposite


    Responded

    1
    Developer 1
    Rating
    (430)
    Projects
    606
    55%
    Arbitration
    48
    23% / 56%
    Overdue
    176
    29%
    Free
    2
    Developer 2
    Rating
    (349)
    Projects
    463
    51%
    Arbitration
    41
    24% / 49%
    Overdue
    149
    32%
    Free
    3
    Developer 3
    Rating
    (1931)
    Projects
    3552
    88%
    Arbitration
    73
    40% / 15%
    Overdue
    268
    8%
    Free
    4
    Developer 4
    Rating
    (574)
    Projects
    945
    47%
    Arbitration
    309
    58% / 27%
    Overdue
    125
    13%
    Free
    5
    Developer 5
    Rating
    (6)
    Projects
    8
    13%
    Arbitration
    1
    0% / 100%
    Overdue
    0
    Free
    6
    Developer 6
    Rating
    (772)
    Projects
    1039
    44%
    Arbitration
    50
    8% / 50%
    Overdue
    116
    11%
    Free
    7
    Developer 7
    Rating
    (365)
    Projects
    507
    40%
    Arbitration
    159
    17% / 74%
    Overdue
    99
    20%
    Loaded
    8
    Developer 8
    Rating
    (144)
    Projects
    285
    42%
    Arbitration
    19
    63% / 5%
    Overdue
    29
    10%
    Free
    Published: 2 codes
    9
    Developer 9
    Rating
    (4)
    Projects
    12
    0%
    Arbitration
    0
    Overdue
    3
    25%
    Free
    10
    Developer 10
    Rating
    (26)
    Projects
    34
    26%
    Arbitration
    7
    14% / 43%
    Overdue
    7
    21%
    Free
    11
    Developer 11
    Rating
    Projects
    0
    0%
    Arbitration
    0
    Overdue
    0
    Free
    12
    Developer 12
    Rating
    (564)
    Projects
    844
    73%
    Arbitration
    15
    53% / 13%
    Overdue
    193
    23%
    Working
    13
    Developer 13
    Rating
    (225)
    Projects
    285
    41%
    Arbitration
    15
    13% / 47%
    Overdue
    67
    24%
    Free
    14
    Developer 14
    Rating
    (298)
    Projects
    477
    40%
    Arbitration
    105
    40% / 24%
    Overdue
    81
    17%
    Loaded
    Published: 2 codes
    15
    Developer 15
    Rating
    (271)
    Projects
    553
    50%
    Arbitration
    57
    40% / 37%
    Overdue
    227
    41%
    Working
    16
    Developer 16
    Rating
    (4)
    Projects
    4
    0%
    Arbitration
    5
    0% / 80%
    Overdue
    1
    25%
    Free
    17
    Developer 17
    Rating
    (22)
    Projects
    18
    6%
    Arbitration
    31
    3% / 65%
    Overdue
    5
    28%
    Free
    18
    Developer 18
    Rating
    (135)
    Projects
    163
    40%
    Arbitration
    11
    27% / 73%
    Overdue
    24
    15%
    Free
    19
    Developer 19
    Rating
    (69)
    Projects
    146
    34%
    Arbitration
    13
    8% / 62%
    Overdue
    26
    18%
    Free
    Published: 6 codes
    Similar orders
    Sierra Chart Alerts to MT5 via Webhook (Alert Manager File Version) Objective: Create a Custom Study (ACSIL / C++) that monitors alerts from the Alert Manager file and forwards any valid alert directly to MT5 via an HTTP POST (Webhook) in JSON format. Additional Note: The study should allow adding any modifications in the future and provide clear insights into the alert points in Sierra Chart. 1. Data Flow Diagram
    Live chart [ expert is not executing trades on xauusd ] , Deleting Existing Parameter not in use , Live Chart Adjustments Only , No Need to Change anything else , expert will be live testing Throughout
    Prepare expert for xauusd live chart [ expert is not executing trades on xauusd ] . Deletion and cleaning code . Trailing Stop Rule to follow the given method . Live Chart Only

    Project information

    Budget
    50 - 125 USD
    Deadline
    from 1 to 10 day(s)