Forum

How to properly use the isNewBar function?

Hi, I am trying to properly use the isNewBar function based on time and I am getting an compile error when I use the code right after the onTick function is called. I tried initializing with different constants and arrays but the program is working as expected and the remaining functions are being

I am trying to invert my Trading Algo, any clues?

Hi, I have an RSI-Trader EA I made that simply makes trades at certain RSI levels at different changeable RSI settings. Some pairs it works fine on some pairs not so much. I want to know why when I try to invert the trading mechanism, so that in the two different if, else brackets instead of buy the

Help with coding tigh trailing stop loss

Hi, I am trying to complete the code for a tight trailing stop for my EA. The Trailing Stop I currently have is such as that only when the trade is much closer to the TP, is when the actual SL is moved up, but I want to make a trailing stop that stays exactly the same distance from the current

Requesting Help in implementing desired trade placing system in EA.

Hi, I am coding a basic RSI trading bot that takes trades when the the RSI is reverting back to the mean (RSI middle of 50) after leaving the upper or lower band. So basically if the RSI has gone under 37.5, and then when the RSI is peaked sell of and is going back up towards the mean, I want place