Job finished
Specification
The Expert Advisor (9588014.mq4) will be sent in the comments
The file (9588014.mq4) was created just to get the information
//////////////////////////////////////////////////////////////////////////////////
(A) Add the function (false) or (true) IN THE EXISTING FUNCTION: TradeSize = 0.01;
(true) Function (B) does not work
(false) Function (A) does not work
//////////////////////////////////////////////////////////////////////////////////
(B) ADD FUNCTION: Position Sizing 1 Lot per 10000 of account currency
KEEP AVAILABLE FOR MODIFICATION (extern)
Add the function (false) or (true)
(true) Function (A) does not work
(false) Function (B) does not work
((( Explaining what the function does: Position Sizing – As your account grows, so will the lot size, and vice versa. For example, if you
enter "1 Lot per 10000 of account currency" and your account size is $500, then the trade size will be $500 / $10000 = 0.05 lots. )))
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
ADD FUNCTION: Close At Profit: $ 2,50 POSITIVE OF PROFIT
KEEP AVAILABLE FOR MODIFICATION (extern)
(C) CLOSE ALL Orders Buy, Sell
IF THE TOTAL BALANCE OF CURRENT OPERATIONS IN LOSS OR PROFIT IN PROGRESS
ACHIEVE A POSITIVE PROFIT OF DOLLARS OR DIFFERENT CURRENCY ACCOUNT
GREATER OR EQUAL TO PROFIT: Close At Profit: $ 2,50 OR DOLLAR BILL OR DIFFERENT CURRENCY
POSITIVE OF PROFIT
DO NOT DO ANY OPERATION AGAIN
In the same candle, the orders that were closed were opened
THIS APPLIES AND WORKS ONLY IF ORDERS WERE CLOSED WITH THE FUNCTION ( Close At Profit )
IF THE TOTAL BALANCE OF CURRENT OPERATIONS
IS BELOW NEGATIVE OR HAS NOT REACHED THE NECESSARY
DO NOT DO ANYTHING
OPERATIONS WILL BE CLOSED ONLY IF THE TOTAL BALANCE REACHES CERTAIN POSITIVE PROFITS
((( Explaining what the function does: Close At Profit – Close all trades when Total Open Profit (profit / loss of all open trades at the current time)
reaches the threshold in USD or account currency. The limit can be positive only. )))
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
(D) WHEN PUT EXPERT ADVISOR TO WORK ON THE GRAPHIC
CANNOT START WORK OPEN Orders Buy, Sell
IN THE CURRENT CANDLE THAT WAS OPENED BEFORE PLACING THE EXPERT IN THE GRAPHIC
NEED TO WAIT AFTER THIS CANDLE CLOSES TO START WORK
//////////////////////////////////////////////////////////////////////////////////
(E) ADD THE FUNCTION THAT CHANGES FROM | 01 |; TO THE MAXIMUM | 99 |;
ONLY THE LAST TWO HOUSES OF THE MAGIC NUMBER
AND REPEAT TO EVERYONE WITHIN A LIST
int MagicNumber1 = 62745 | 01 |;
int MagicNumber2 = 62746 | 01 |;
int MagicNumber3 = 62747 | 01 |;
int MagicNumber4 = 62748 | 01 |;
int MagicNumber5 = 62749 | 01 |;
int MagicNumber6 = 62751 | 01 |;
int MagicNumber7 = 62752 | 01 |;
int MagicNumber8 = 62753 | 01 |;
int MagicNumber9 = 62754 | 01 |;
int MagicNumber10 = 62755 | 01 |;
int MagicNumber11 = 62756 | 01 |;
KEEP AVAILABLE FOR MODIFICATION (extern) EDITABLE FIELD ONLY
/////////////////////////////////////////////////////////////////
MAKE FUNCTIONS ON (9588014.mq4) MAKING THE NECESSARY CHANGES
YOU HAVE TO DELIVER THE CODE FORMAT AT (.mq4) MQL4 Source File