Tâche terminée
Spécifications
I have an MT5 EA that needs a few lines of code fixed in the ManageOpen and a few minor additions. Here is what needs fixed and added and the way it should trade.
Starc Bands EA (MT5)
Uses the custom STARC_BANDS indicator (MT5).
Will provide you with a copy of my Starc Bands EA and the the custom Starc_Bands Indicator.
Uses 3 Starc Bands Indicators.
Starc Bands 0 First Condition that must be met.
Starc Bands 1. Trade Opening Condition.
Starc Bands 2. Trade Closing Condition (If not closed by tp/sl)
Main emphasis is for EA to trade on Tick/Price.
ERRORS:
1. Opening Orders aren't placed in the correct direction/place. (NEEDS JUST A FEW LINES OF CODE CORRECTED/ADDED IN ManageOpen)
Incorrect opening direction causes Close by Indicator to be incorrect. (VERIFY CLOSE BY INDICATOR IS CORRECT)
2. EA Currently has input option to trade by tick. But it trades by Open/Close. (FIX and VERIFY can trade by tick/price or open/close)
Options for Opening Trade:
1. Option for Trades to be made on Tick/Price, or Open/Close (NEEDS TO BE FIXED AND VERIFIED.)
2. ADD an Input option for trading by Fixed Lot, %Balance, % Margin,, etc. (NEEDS ADDED)
3. ADD an Input option for TP/SL to be in Points, $$, or % of open price (NEEDS ADDED Note: EA is used for Crypto)
4. ADD an Input option for Opening Trade to be either Market or Pending Limit Order. (NEEDS ADDED)
5. ADD an Input option for Time Limit for placed Pending Limit Order (OFF, ON, and X minutes) (NEEDS ADDED)
6. ADD an Input option for "X" Tick Delay (OFF, ON, X amount of ticks). When ON checks for price and existing orders and trades every “X” ticks Always Turns OFF after CONDITION 1 from Trading Rules is hit (See Below) If input option is ON, then turns back ON AFTER Trade is closed. (NEEDS ADDED.)
Trading Rules:
1. One Trade Opened by this EA at a Time and places orders on TIck/Price, or Open/Close
CONDITION for OPENING a BUY/LONG:
1. CONDITION 1: PRICE goes DOWN and Crosses BELOW (<) the Starc LOWER Band (Settings from Starc Indicator 0: (“ind0” —Trigger A--)
2. IF Condition 1 met then proceed to Condition 2 and do not repeat condition 1 until next trade cycle
3. TICK DELAY IS AUTOMATICALLY TURNED OFF AFTER CONDITION 1 IS MET
4. IF TRADE BY PENDING LIMIT ORDER: Place Pending Limit BUY/LONG Order at Starc LOWER Band (Settings from Starc Indicator 1: “ind1” --Trigger B--)
5. If Time Limit for Pending Limit order is ON, and Pending Limit Order exceeds Time Limit, cancel Pending Limit Order and initiate new trade cycle.
6. IF TRADE BY MARKET ORDER then CONDITION 2.
7. CONDITION 2: AFTER CONDITION 1 IS MET, PRICE then goes UP and HITS/CROSSES ABOVE (>=) the Starc LOWER Band (Settings from Starc Indicator 1: "ind1” --Trigger B—) = TRADE
8. TRADE: Places MARKET BUY/LONG at Condition 2 when PRICE moves UP and HITS/CROSSES (>=)the Starc LOWER Band (Settings from Starc Indicator 1: "ind1” --Trigger B--)
CONDITIONS for OPENING a SELL/SHORT:
1. CONDITION 1: PRICE goes UP and Crosses ABOVE (>) the Starc UPPER Band (Settings from Starc Indicator 0: “ind0” --Trigger A--)
2. IF Condition 1 met then proceed to Condition 2 and do not repeat condition 1 until next trade cycle
3. TICK DELAY IS AUTOMATICALLY TURNED OFF AFTER CONDITION 1 IS MET
4. IF TRADE BY PENDING LIMIT ORDER: Place Pending Limit SELL/SHORT Order at Starc UPPER Band (Settings from Starc Indicator 1: “ind1” —Trigger B--)
5. If Time Limit for Pending Limit order is ON, and Pending Limit Order exceeds Time Limit, cancel Pending Limit Order and initiate new trade cycle.
6. IF TRADE BY MARKET ORDER then Condition 2.
7. CONDITION 2: AFTER CONDITION 1 IS MET, PRICE then goes DOWN and HITS/CROSSES BELOW (<=) the Starc UPPER Band (Settings from Starc Indicator 1: "ind1” --Trigger B--) = TRADE
8. TRADE: Places MARKET SELL/SHORT at Condition 2 when PRICE moves DOWN and HITS/CROSSES (<=) the Starc UPPER Band (Starc Indicator 1: "ind1” --Trigger B--)
OPTIONS for CLOSING a TRADE:
Option 1. Take Profit/Stop Loss in Points (Note: EA is primarily used for Cryptocurrency)
Option 2. Take Profit/Stop Loss in $$ (NEEDS TO BE ADDED)
Option 3. Take Profit/Stop Loss by % of original order price (NEEDS TO BE ADDED)
Option 4. Closes by Starc Indicator 2 (“ind2 “— Close —) if reached before Take Profit/Stop Loss or if TP/SL = 0
CONDITIONS for CLOSING by Starc Indicator:
CONDITIONS for CLOSING a BUY/LONG
1. CONDITION 1: PRICE goes DOWN and Crosses BELOW (<=) the Starc LOWER Band (Settings from Starc Indicator 2: "ind2“—Close--) = CLOSE TRADE
2. CLOSE TRADE: Closes by MARKET ORDER at Condition 1 at Cross when PRICE moves DOWN and HITS/CROSSES (<=) the Starc LOWER Band (Starc Indicator 2: "ind2” —Close—)
CONDITIONS for CLOSING a SELL/SHORT
1. CONDITION 1: PRICE goes UP and Crosses ABOVE (>=) the Starc UPPER Band (Settings from Starc Indicator 2: “ind2“ —Close--)
2. CLOSE TRADE: Closes by MARKET ORDER at Condition 1 at Cross when PRICE moves UP and HITS/CROSSES (>=) the Starc UPPER Band (Starc Indicator 2: "ind2” —Close—)