Description
The "Sample SAR Trailing Stop Robot" will create a market Buy order if the parabolic SAR of the previous bar is
below the candlestick. A Sell order will be created if the parabolic SAR of the previous bar is above the candlestick.
The order's volume is specified in the "Volume" parameter. The order will have a trailing stop defined by the
previous periods' Parabolic SAR levels. The user can change the Parabolic SAR settings by adjusting the "MinAF"
and "MaxAF" parameters.
/
akleanthous
Joined on 11.07.2012
- Distribution: Free
- Language: C#
- Trading platform: cTrader Automate
- File name: SAR Trailing Stop.algo
- Rating: 0
- Installs: 4219
- Modified: 13/10/2021 09:54
Comments
Hello to all,
a kind info: so finally is it available the parabolic SAR cBot that creates a market Buy order if the parabolic SAR of the RUNNING bar is below the candlestick and a Sell order if the parabolic SAR of the RUNNING bar is above the candlestick?
To me, the best would be that the running order is colsed when the next reverse SAR direction order is created.
Let me know please
Thak you all
Hi Pipdays,
Were you able to have your requested cBot created? I was looking to have the exact one you requested!
If so, how were the returns over the last year or so?
Thanks
Hi
So if the sar is flips from below to above will the bot get me into a sell trade and the same with a buy trade.
Please may I request that this cBot is modified to run continuously and open a new trade in the direction of the indicator once a transtion is closed
Also, the 1st transaction should commence on the 1st reversal after the cBot is activated
May you take a look of line 76:
if (position.TradeType == TradeType.Sell && isProtected)
{
if (newStopLoss < Symbol.Bid) //COULD BE SYMBOL.ASK instead of SYMBOL.BID?
return;
if (position.StopLoss - newStopLoss < Symbol.TickSize)
return;
}
..obviously i mean the FIRST RUNNING BAR with the parabolic SAR below or above.
In other words, when parabolic SAR changes his direction, cBot has got to open a new order and close the previous one, and it would be the best if combined with Take Profit and Stop Loss setups.
Waiting for kind reply, thanx again