Forum

Following/handle 1 specific trade

Hello, I am trying for a couple of days to solve 1 problem in my EA which I can not solve. The "issue" is following: Lets say I have a Sell trade running. After few positive pips the price reverses and the initial sell trade becomes negative. After x pips in wrong direction I want to open 1 hedge

Indicator very slow and runs in error

Good morning, I am still in the learning process so please dont be offended if I ask silly questions. I am working on an indicator and recently added some part of code which calculates a raff channel. The code was a bit enhanced by me so it can calculate the regression on another timeframe. This is

Challenge Trendlines

Hello Experts :-) I just this code to check if current price hits a support line and draw an arrow on the chart in such case: int start() { if(Bars<=3) return(0); int ExtCountedBars=IndicatorCounted(); if (ExtCountedBars<0) return(-1); int current=Bars-2; if(ExtCountedBars>2)

Time comparison

Hello, I am trying for a couple of days already to find a way comparing a given time with the time of a specific bar. The idea is that my indicator should only print an arrow if the time of that bar is within the range StartTime and EndTime (no matter the day). In the end all arrows disappear when