You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Do you wanna have it modifying StopLoss for both Buy and Sell trades with same pip ??
Think again if that is what you want and you can figure out why it is not moddifying that way....
Also don't modify trades with every new point in right direction choose a trailingstep to allow modifying (xx Points can choose 10 or more to avoid a lot of tradecontext too busy errors)
"!" is something like not in coding
OK, found the problem . . . Spread is returned as the number of points . . .
So, change these lines . . .
to this . . .
OK, found the problem . . . Spread is returned as the number of points . . .
So, change these lines . . .
to this . . .
That makes it work, thanks! Both the buy and sell trades get modified now, however, for some reasons they get modified a few times throughout the trades and the take profit seems to sometimes go further than what the inputs require it to. This seems to happen at whole times like 2:00 or 7:00, I'm not quite sure why this is happening, does it by any chance have something to do with the spread changing all the time? This happens with both buy and sell trades so I figure it can't be the spread. The only way I could think of is that the candle at 23:00 appears to change although that wouldn't make sense and I'm not sure how I could test that.
I'm trying to use this:
To see if the open price of the bar changes but it seems to be printing random times each time.
Also on one of the days I noticed the trades don't follow the close all rule to close trades at 22:59 regardless of what's happening, I think this has stopped working.
I'm using this
and this
To close the trades at the specified time.
A post all in capital letters has been removed.
Please do not make excessive use of capital letters when posting.It is considered shouting and very rude.