İş Gereklilikleri
Hello, I need to create a brand new EA; here are the specifications:
Buy Condition:
If (Account Balance > Bet Price * X) && (Ask price for current Buy Order is "DELTA" far from all the other Buy Orders contained in Buy Array) && (Ask price for current Buy Order < MAX LIMIT) Then Send Order with fixed Bet Amount and Leverage, Stop Loss = (X-1)*Bet, TP= infinite.
Tcondition:
For each Order in TB (TS) Array:
IF (Profit > Y) && (it is the First time Trailing Activation for this order) Then
Stop Loss Price for Trailing start to be set at the correspondent of Profit = Y/2;
Delete Order from Buy/Sell Array.
Sell Condition is viceversa than Buy Condition.
Legend:
Bet Price = is the amount of money to spend for a single order for a certain Symbol at a certain Leverage
X = is a factor, depending on the symbol and market
DELTA = is a chosen value of Lot/Money to avoid making too many bet at the same price, Higher or Lower price
MAX LIMIT = is a chosen value to avoid bet in certain conditions)
Example:
"Y" like the others you have mentioned I have to set it at the moment I start the EA and that it is distinguished between the various Symbol (markets) of work.
I think it would be optimal for the EA as soon as it is activated to ask me for the following values that I report in an example EUR / USD valid for Sell and Buy:
-Leverage = 30;
-BetPrice = 50 $;
-Delta = $ 25;
-Y = $ 10;
-X = 2;
-Max Limit = 1.1300;
-Min Limit = 1.0800;
In the example specified above, it takes for each bet $ 100 (x * BetPrice), $ 50 of effective bet (betprice) and an additional $ 50 of Stop Loss per cover ((x-1) * Betprice), i.e. I lose if the symbol goes to -100 $.
Then the system must activate the trailing stop loss starting from a profit of $ 10, fixing as soon as it gets the first + $ 10 a Stop Loss at + $ 5.
The "Delta" value is used to manage volatility and not to insert too many bets. So following the example above, no other Long bets should start if I already have them open, with a loss-profit range between -25 $ and + 25 $. Similarly for the shorts. Where there are bets with Trailing Stop Loss activated, the bet can start and new trades can be opened. This is the use of the two counting Arrays for the Long group of bets and similarly for the Short ones.
Max and Min Limit are game limiters. For Long bets if anything the market goes above Max Limit, I want it to stop playing Long, if it goes below Min Limit, I want it to stop playing Short.
PS: You don't need to play Long if the price goes up and short if the price goes down or something like that. I don't want to place orders on a temporary price trend basis. For example, if I do not have any bets already in progress, it is sure that as soon as I start the EA it will place a Long and a Short at the same time.