Forum

Position monitoring with adx

Hello, I have a working robot. The feature I want is this: When opening a position, if the value of the adx wilder indicator is less than 20, it does not open the position. If it is greater, it opens the position. In other words, it constantly checks adx

How can I write the buy risk if stochastik rsi da k parameter cuts 80 down and sell cuts 20 up?

How can I write the buy risk if stochastik rsi da k parameter cuts 80 down and sell cuts 20 up

Add to stochastic rsı my ea

Hello, I want to add additional features to my robot. Sell if the k line on stochastic rsi crosses below 80. I wrote this condition as follows. but it didn't. Could you help? else if(CountOpenedPositions("buy")!=0 && (signal == "sell" || ((InpKPeriod(0) > 80.0 and InpKPeriod(1) < 80.0 )))

stochastic rsi codes

If the stochastic risk line crosses 20 up, buy. If it cuts 80 down, sell. How can I write these codes

stochastic rsi sell

hi stochastic rsi sell if k line cuts down 80. I want to create this condition. do you think this code is correct? else if(CountOpenedPositions("buy")!=0 && (signal == "sell" || ((InpKPeriod < 80.0)))) {CloseAllOrders("buy"); Comment("Closed By rsi");}

price close

I want to add some features in my robot. I just want bar closing code. Is it enough for me to write iclose ? how should i define it? can you help me

Taking the absolute value of value

I want to get the absolute value of the MACD value. Main line can sometimes be below zero. It's causing problems with my transactions. How to write the code for the 0 distance, that is, the absolute value of the main line? If anyone knows, can you teach

no error but not working

I added the macd indicator to my robot. If the difference between the signal line and the man line in the macd indicator is 0.005, I added a position closing condition. no eror. but the function I want is not working. Can you show me where is the error? Robot codes are attached. <ex5 file deleted>

parenthesis error.

My robot has a parenthesis error. I can't figure it out for 2 weeks. When you close the parentheses directly, the number of eroro increases. I tried many ways but it didn't work. I need help. I add the robot

I have a parenthesis error. I still can't find it. Anyone want to teach?

I have a parenthesis error in my android software. I still can't find it. Anyone want to teach