Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.
From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.
Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
Elite Section
Get access to private discussions, specialized support, indicators and trading systems reported every week.
Advanced Elite Section
For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
This method is intended for a finished fully functional system. What I mean is one that is turned on and let run. If your testing a system and changing TF and turning it off in the middle of its run then its not set up for that. I have another way to change settings on an EA while its running that doesnot intail turning it off and on again. The line of code that is hi-lighted turns this function on or off. It grants the user the ability to intravine in the operation of the EA while it is running without having to stop and restart it. On evey tick at the start of the code the program looks to see if the user has over ride the process. Liken to a back door.
I have also done some work on a means of createing a registry process for all EAs that are running. Based on the reason for deinit the EA can look for any existing orders on restart. This is intended again for a fully functional system and the main purpose is for the ablility to recover form outages. This is not completed at this time.
Code:
extern bool
SetSystemInAuto = False;
// ««« SYSTEM DEFAULT PARAMETER SECTION: »»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»
bool
HoldDirection = False, // Holds last win direction to start new campaign.
UseMarketBias = False, // Market direction determines first level deployment.
UserIntervention = False, // Ability to manually over ride system during its run.
UseStopLoss = False, // Switch on and off the use of stoploss orders.
UseTakeProfits = False, // Switch to apply Take Profit exits.
UseEmergencyExits = False, // Switch for the the use of emergency sever base exits.
AutoProfitSizing = False, // ProfitTarget will be derived from market conditions.
AutoTunnelSizing = False, // Tunnel size will be derived from market conditions.
AutoLotSizing = False, // Bases base lot size to current account size.
PlaySoundAlerts = False, // Enables sound wave to be played on triggered alerts.
DeBugMessages = True; // Turns on and off code functions for code debuging.
int
DefaultDirection = Long, // Default setting initial system start up.
ScreenInformation = All, // Switches system information screens.
AvailableScreens = 7, // Maximum information screen available for viewing.
ScreenViewingTime = 15, // Length of time screen is visiable (in Ticks).
PauseInterval = 10000, // Pause interval between order placements (10sec).
MaximumAttempts = 2, // Repeated order execution on failed attempt.
OrderPortion = 100, // Internal portion of Tag number for position tracking.
Slippage = 0, // Sets price slippage for order entry.
MaximumLots = 50, // Maximum net lots permitted by your broker.
RiskLevel = 1, // Varible, 1 to 5: One being the lowest risk level.
EmergencyExitLevel = 30, // The emergency exit level to mantain on open orders.
MaximumLevels = 10, // Maximum trade levels that will be mantained.
MarketStudyPeriod = 13; // Data length to determine Market conditional Bias.
// ««« GLOBAL SCOPE VARIABLES SECTION: »»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»
int
PositionLevel = Empty, OrderDirection = Empty,
LastDirection = Empty, LastOrderPlaced = Empty,
Quote:
Originally Posted by Nicholishen
I used that in another system, but too many people had problems from denit the EA and then it would init with a new id. They were getting confused and having the ea keep onopen order because it would not recognize the existing orders. I love this system and want to use it, but do you know of a way to keep the EA from init and deinit when you change settings or power down?
Still profitable as you can see. At first, I thought the higher timeframes worked better with this EA, I was mistaken. Lower timeframes seem to work very well.
Only one more thing we need on this EA. Reverse trades as the higher timeframes would benefit greatly from that feature. Help anyone. Add that feature in.
Only one more thing we need on this EA. Reverse trades as the higher timeframes would benefit greatly from that feature. Help anyone. Add that feature in.
It's possible to reverse the trades, but you have to adjust the TP and SL coz of bid and ask different.
It's possible to reverse the trades, but you have to adjust the TP and SL coz of bid and ask different.
I understand the changes but I believe that certain timeframes and settings would make this VERY profitable. If someone could code this one feature into it, that would be great.
Only one more thing we need on this EA. Reverse trades as the higher timeframes would benefit greatly from that feature. Help anyone. Add that feature in.
Holyguy,
I tried to reverse the signals in the attached EA. Is that what you are looking for?