Specification
Create an Expert Advisor based on existing Expert Advisor using the CMSM or CCFP indicator, based on this topic on Forex Factory:
https://www.forexfactory.com/showthread.php?t=635569
The advisor and indicator are attached, but of course the codes are not visible.
I want to have almost the same Expert Advisor but with added functions which I will explain later. Here is the standard feature list:
###############
Basket magic number
Trade comment
Trade mode
#####Open/Close hours)###
OpenHOur
Friday close
include data/hours when min/max is recorded
lowest margin allowed
sort suggested pairs by strength
####lot size option####
Lot sizing (Fixed, lotsperbalance)
lot size
lots per balance
####Set hour to close basket####
Select Status to close basket
Enter hours after basket open to check status
####Basket stoploss/takeprofit####
use pips or % for SL/TP/ value
Take profit basket pips or %
Stoploss basket pips or %
####Setting for weekly trademode####
Day of week to open basket
####Setting for daily trademode####
Daily hour to close basket
Allow trading days
####setting for monthly trademode###
Day of month to open basket
####Trail stop for basket settings (pips or %)####
Select Perfect of profit trailstop/manual lock/no trail
Begin locking profit, tell EA when to start trailing (% or pips)
Steplock, move trail when profit reaches (% or pips)
LockPercentLevel (%) (Select: Percent of profit)
Manual one time lock
First lock always BE
####Trade control settings####
Max trades allowed
Reverse all trades/suggestions from indicator
Add new trades
only add new trades if real basket is positive
flip open trades if newer suggestion is opposite
keep both flipped trade and original trade in real basket
for multiple list allow duplicates on realbasket
for multiple list allow hedges on realbasket
####Virtual Basket Settings####
Use virtual basket
Max virtual trades allowed
treat VB as Realbasket
Only allow vb trades with + profit to open in real basket
Min +pips to allow vb trade, default 0 allow only positive vb
Show max min vbasket pip gains
vBasket (Upper trigger level/pips/Percentage)
vBasket (Upper trigger level/pips/Percentage)
Virtual bounce trigger
Hours minutes vbasket is open
hours minutes vbasket is processed after triggered
####AUXILARY SETTINGS####
use initial trade suggestions when EA opens Realbasket
Logtofile_basketpip count
loginterval
disable basketclose warnings
ignore closehour if in dd
check VPS gmtshit
printdebuginfo
printdebugfilter
######################
The EA is based on the CMSM indicator and CCFP. Basically it opens the trade suggestions from the Indicator based on the requirements set in EA. The EA works fine, however for me I want to have some more options as described below:
1. My main trading will happen by opening a Virtual Basket first, when it triggered the tradelevel it will open the first basket, but I want the virtual basket to keep open en let the pips running.
2. Because a lot of times the pips will go negative until it goes up again. I want to have multiple trade levels in the virtual basket. For example, for every -200 pips (negative) I want to open the suggested basket.
3. The trades should be closed all together if the combined trades reach a certain level, such as +100 pips or +5%
4. Other trading option I want is to trade reverse suggestions in between the trade levels. If I open new baskets every -200 pips, I want to trade 150-180 pips in between to counter trade the loss. Is this possible? I would like to hedge my losses and I am open for suggestions. The Reverse trading should have a stoploss, I am considering the stoploss to be taken into the "General" positive pip/percentage calculation
5. The EA should be possible to trade small accounts in the beginning.