Auftrag beendet
Spezifikation
I need 2 changes:
I need my buy and sell code like this.....So I can make changes in the code myself for mixed candles
-------------------------------------------------------------------------------------------------
//--- buy conditions
(RSI<30 && Close[1]<Open[1] && Close[2]<Open[2]) // Candles =2
//--Sell conditions
(RSI>70 && Close[1]>Open[1] && Close[2]>Open[2]) // Candles =2
-------1st Changes- ----Input X Consecutive Candles------------------------
Buy
X=1 Next input 1st Candle = Bull or Bear
X=2 Next input 1st Candle = Bull or Bear, 2nd Candle = Bull or Bear
X=3 Next input 1st Candle = Bull or Bear, 2nd Candle = Bull or Bear, 3rd Candle = Bull or Bear
X=4 Next input 1st Candle = Bull or Bear, 2nd Candle = Bull or Bear, 3rd Candle = Bull or Bear, 4th Candle = Bull or Bear
X=5 Next input 1st Candle = Bull or Bear, 2nd Candle = Bull or Bear, 3rd Candle = Bull or Bear, 4th Candle = Bull or Bear, 5th Candle = Bull or Bear
X=6 Next input 1st Candle = Bull or Bear, 2nd Candle = Bull or Bear, 3rd Candle = Bull or Bear, 4th Candle = Bull or Bear, 5th Candle = Bull or Bear, 6th Candle = Bull or Bear
Sell
X=1 Next input 1st Candle = Bull or Bear
X=2 Next input 1st Candle = Bull or Bear, 2nd Candle = Bull or Bear
X=3 Next input 1st Candle = Bull or Bear, 2nd Candle = Bull or Bear, 3rd Candle = Bull or Bear
X=4 Next input 1st Candle = Bull or Bear, 2nd Candle = Bull or Bear, 3rd Candle = Bull or Bear, 4th Candle = Bull or Bear
X=5 Next input 1st Candle = Bull or Bear, 2nd Candle = Bull or Bear, 3rd Candle = Bull or Bear, 4th Candle = Bull or Bear, 5th Candle = Bull or Bear
X=6 Next input 1st Candle = Bull or Bear, 2nd Candle = Bull or Bear, 3rd Candle = Bull or Bear, 4th Candle = Bull or Bear, 5th Candle = Bull or Bear, 6th Candle = Bull or Bear
------------------------------------Example Start-------------------------------------------
input string _________________________________="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";//_________ Number of candles (Option from 1 to 6 candles)
------------BUY Candles----------------------------------------------------
int Numberofcandle_1 = 1; //Number of candles
string Candle_1-Type = Bull or Bear
int Numberofcandle_2 = 2; //Number of candles
string Candle_1-Type = Bull or Bear
string Candle_2-Type = Bull or Bear
int Numberofcandle_3 = 3; //Number of candles
string Candle_1-Type = Bull or Bear
string Candle_2-Type = Bull or Bear
string Candle_3-Type = Bull or Bear
int Numberofcandle_4 = 4; //Number of candles
string Candle_1-Type = Bull or Bear
string Candle_2-Type = Bull or Bear
string Candle_3-Type = Bull or Bear
string Candle_4-Type = Bull or Bear
int Numberofcandle_5 = 5; //Number of candles
string Candle_1-Type = Bull or Bear
string Candle_2-Type = Bull or Bear
string Candle_3-Type = Bull or Bear
string Candle_4-Type = Bull or Bear
string Candle_5-Type = Bull or Bear
int Numberofcandle_6 = 6; //Number of candles
string Candle_1-Type = Bull or Bear
string Candle_2-Type = Bull or Bear
string Candle_3-Type = Bull or Bear
string Candle_4-Type = Bull or Bear
string Candle_5-Type = Bull or Bear
string Candle_6-Type = Bull or Bear
------------SELL Candles----------------------------------------------------
int Numberofcandle_1 = 1; //Number of candles
string Candle_1-Type = Bull or Bear
int Numberofcandle_2 = 2; //Number of candles
string Candle_1-Type = Bull or Bear
string Candle_2-Type = Bull or Bear
int Numberofcandle_3 = 3; //Number of candles
string Candle_1-Type = Bull or Bear
string Candle_2-Type = Bull or Bear
string Candle_3-Type = Bull or Bear
int Numberofcandle_4 = 4; //Number of candles
string Candle_1-Type = Bull or Bear
string Candle_2-Type = Bull or Bear
string Candle_3-Type = Bull or Bear
string Candle_4-Type = Bull or Bear
int Numberofcandle_5 = 5; //Number of candles
string Candle_1-Type = Bull or Bear
string Candle_2-Type = Bull or Bear
string Candle_3-Type = Bull or Bear
string Candle_4-Type = Bull or Bear
string Candle_5-Type = Bull or Bear
int Numberofcandle_6 = 6; //Number of candles
string Candle_1-Type = Bull or Bear
string Candle_2-Type = Bull or Bear
string Candle_3-Type = Bull or Bear
string Candle_4-Type = Bull or Bear
string Candle_5-Type = Bull or Bear
string Candle_6-Type = Bull or Bear
------------------------------------- Example End-------------------------------------------
-------2nd Changes- ----Input How to open next Trade -----X Consecutive loss trades----------------This option should be provide in addition to the existing option
2) Consecutive loss and change side should be applicable on same day basis....
If I select 5M chart and I got first loss in one 5 mins candle where I was buying and RSI is 30 or below. Again took second loss in same or next 5 min candle and if my condition is 2 consecutive loss and change side.
Than in the same or next 5 mins candle when both condition ( consecutive bull candles and RSI 30) is TRUE I will sell. This option should be given separately in addition to the existing option, sell side will continue till we get x consecutive losses.