Lavoro terminato
Specifiche
EA setting:
Scan based on: 4hrs /Day / weekly/ Monthly
Trading Timeframe: 15 mins, 30mins, 1 hr, 4 hr, day, week, Month
Consider no of Previous day/ Weekly/ Monthly: 365
Lot size: 0.01
If Buy, Take Profit (USD): 10
If Sell, Take profit (USD): 10
Equity reset at every (USD): 30
Equity loss reset at every (USD): 50
Consider stoploss as : Close bar
Stoploss Timeframe : 15 mins, 30mins, 1 hr, 4 hr, day, week, Month
Allow trade only spread below (points): 25
-------------------------------------------------------------------------------------------------------------
Procedure:
Pivot point (PP) = (High + Low + Close) / 3
Second resistance (R2) = PP + (High – Low)
Second support (S2) = PP – (High – Low)
Find the lowest ratio of R2/S2 among the mentioned Days/ weeks / years. (For example if choose weeks and no of weeks 54) then among 54 weeks R2/S2 ratio, find which is having Lowest R2/S2 ratio.
Fix those levels for opening and closing the trades.
Note:
Draw a R2/ S2 pivot line for each case, (Daily, weekly, monthly)
Show the minimum R2/S2 level by separate color on the chart.
-----------------------------------------------------------------------------------------------------------------
Order procedure:
Step 1:
Based on Scan preference, The EA should draw the R2 and S2 line on the chart.
For example, if choose Day scan, it should draw the R2 and S2 line for today and previous all days based on Consider number of Previous day/ Weekly/ Monthly
Step 2:
Then EA should find the minimum value of R2/S2 among the 365 days (365 as the EA input for previous bars to consider for R2 and S2)
Based on this the EA should again draw the Horizontal color from where minimum value is found. This line should extent till next new lines form.
Step 3:
Based on the trading time frame (Say 15 mins)
At the end of 15 mins bar closing, if the close price crossed above the R2 ( Which is found minimum among 365 days) then open the buy trade.
If the price crossed below the S2 open the sell trade.
Note:
If buy already open, the buy close to be confirm only based on (Stoploss time frame).
For example, R2 line value is $100, S2 value is $98.
15 mins time frame close price crossed above $100, then I should open a buy trade.
Stoploss time frame is: day.
Which means the next day price may goes below 98, but it should not close based on 15 mins time frame, it should wait till the day close, if close price below 98, then close the buy trade and open a new sell trade.
Step 4:
I want to give separate target for buy and sell orders.
All the trades should open and close only if the spread is within the range.
Step 5:
equity reset(USD): 30
When first order open in the EA , get the equity value say $300 usd, next all orders should get closed if equity reached 330 usd, 250 usd(loss reset every 50).
Incase 330 achieved, then new order will open freshly, hence next reset would be 360 USD or 280 USD.