A collection of predefined Scripts
A collection of predefined Scripts saves time by having available for immediate use the required setting without having to key it in.
Make your own Scripts from downloaded Scripts - This looks long-winded but once done its actually a quick 1,2,3. You will find it surprisingly quick and easy.
Why keep re-setting a Scrip, Indicator or EA default parameter from, say, 34 to 50 ? Permanently change the default setting to 50 or make a copy with default 50 !
Follow these steps
The only code to edit are the two 500 numbers.
// Script: 0-A SL 500 extern int StopLoss = 500;
The code behind the Inputs Tab of Scripts, Indicators and Expert Advisors can always be located by finding the code word 'extern' (without quotations) which will always be near the top of the program.
The code word 'int'
stands for integer (..-2, -1, 0, 1, 2, ..). Basically negative or
positive numbers that do not include decimals places. 'Int' defines
'Stoploss' as an integer value.
The code to change - as far basic edits go - will be the code after the = sign. Eg1: extern color
Line_Color = Red; - Change Red to Blue or Green etc. Eg2: extern int
Line_Width = 1; - Change 1 to 2, 3, 4 or 5. Eg3: extern string Font_Type = "Arial"; - Change Arial to "Arial Bold" or "Verdana". Note quotation marks (" bla") required for parameters of string variables (extern string ...... = "bla";).
Text after // is used as descriptive comment and excluded from code function. Sometimes code is commented out (// ..bla bla.. or /*..bla bla...*/ ) for reasons like fault finding by process of elimination.
// Script: 0-A SL 800
extern int StopLoss = 800;
Apply the same procedure to other Scripts.
double: def - real number - includes fraction part.
int: def - (integer) whole number - no fraction part.
Before: 0-2 Buy Limit.mq4
// Default Inputs: Start extern double Buy_Lots = 0.01; // one micro-lot extern double Buy_Limit_Price = 0.0; extern int Slippage = 3; extern int StopLoss = 0; extern int TakeProfit = 0; // Default Inputs: End
After: 0-2 Buy Limit 0200-0600.mq4
// Default Inputs: Start extern double Buy_Lots = 0.10; // one mini-lot extern double Buy_Limit_Price = 0.0; extern int Slippage = 4; // My name is Jack and I've coded slippagw at 4. I've added comments behind StopLoss at 200 and TakeProfit at 600 extern int StopLoss = 200; // 200 points (20 pips) extern int TakeProfit = 600; // 600 points (60 pips) // Default Inputs: End
After: 0-2 Buy Limit 0300-2000.mq4
// Default Inputs: Start extern double Buy_Lots = 10.00; // ten lots extern double Buy_Limit_Price = 0.0; extern int Slippage = 5; // My name is Jill and I've coded slippage at 5. I'm not going to add comments behind StopLoss and TakeProfit extern int StopLoss = 300; extern int TakeProfit = 2000; // Default Inputs: End
The indicator draws support & resistance levels based on the last MN1, W1, D1, H4 and H1 fractals.a_informer
It Is placing stop loss and take profit at a given distance. Displays the current status of open orders. For closing of the order it is enough to select and move the label to the left.
The EA will close all open orders across all charts corresponding to the EA chart symbol when Bid or Ask is equal to or crosses the MA.Close cross Kijun Sen
The EA will close all open orders across all charts corresponding to the EA chart symbol when Bid or Ask is equal to or crosses the Kijun Sen.