Thanks so much!!
Wilder, J. Welles. New Concepts in Technical Trading Systems. Greensboro, NC: Trend Research, 1978.
an anyone in a nutshell explain the use of the Parabolic SAR? Would I use it to set my stops once in a trade?
Any feedback would be much appreciated....
Thanks..
MarcI think the SAR is a good effect for month period!
paremeter: Step 0.04 Maximum 0.2
I feel this paremeter suit trading! I like to use the SAR in the weekly and month period!
hope will help you!
How do you use it,kingfox?
an anyone in a nutshell explain the use of the Parabolic SAR? Would I use it to set my stops once in a trade?
Any feedback would be much appreciated....
Thanks..
MarcThe Parabolic Time/Price System, developed by Welles Wilder,
is used to set trailing price stops and is usually referred
to as the "SAR" (stop-and-reversal).
This indicator is explained thoroughly in Wilder's book,
New Concepts in Technical Trading Systems.
Interpretation
The Parabolic SAR provides excellent exit points.
You should close long positions when the price
falls below the SAR and close short positions
when the price rises above the SAR.
If you are long (i.e., the price is above the SAR),
the SAR will move up every day, regardless of
the direction the price is moving. The amount
the SAR moves up depends on the amount
that prices move.
The Parabolic SAR is plotted as shown in Wilder's book.
Each SAR stop level point is displayed on the day
in which it is in effect. Note that the SAR value
is today's, not tomorrow's stop level.Wilder, J. Welles. New Concepts in Technical Trading Systems. Greensboro, NC: Trend Research, 1978.
Dear
I am a beginner with EA coding.
I am trying to develop an EA which uses Palabolic SAR trailing Stop.
I have put the below as part of my code but getting a lot of compiling errors.
Being a beginner, I am unable to figure out why the errors. Any one to help to address the errors will be grateful.
include <Expert\Trailing\TrailingParabolicSAR.mqh> //+------------------------------------------------------------------+ //| Expert initialization function | //+------------------------------------------------------------------+ input bool UseTrailingStop=false; input double SARStep=0.2; input double SARMaximum=0.02; input int MinimumProfit=0; input int Step=0; MqlRates bar[]; bool SARSignal=false; int HandlerSAR; CTrailingPSAR ParabolicSAR; int OnInit() { ArraySetAsSeries(bar,true); HandlerSAR=iSAR(_Symbol,TradingTimeFrame,SARMaximum,SARStep); //--- //--- return(INIT_SUCCEEDED); } //+------------------------------------------------------------------+ //| Expert deinitialization function | //+------------------------------------------------------------------+ void OnDeinit(const int reason) { //--- } //+------------------------------------------------------------------+ //| Expert tick function | //+------------------------------------------------------------------+ void OnTick() { double PBSAR[]; PClose[]; ArraySetAsSeries(PBSAR, true); ArraySetAsSeries(PClose, true); CopyBuffer(HandlerSAR,MAIN_LINE,0,2,PBSAR); CopyClose(_Symbol,PERIOD_CURRENT,0,2,PClose); if(PositionSelect(_Symbol)==true) if((POSITION_TYPE(_Symbol)== POSITION_TYPE_BUY && PBSAR[0] < PClose[0]) || (POSITION_TYPE(_Symbol)==POSITION_TYPE_SELL && PBSAR[0] > PClose[0])) SARSignal=true; if (UseTrailingStop==true && SARSignal==true) ParabolicSAR.TrailingStop(_Symbol,PBSAR[1],MinimumProfit,Step); }
Why don't you use what already exists - especially because you are a beginner?
Here is just what already exists in the CodeBase: https://www.mql5.com/en/search#!keyword=SAR%20TRailing%20Stop&module=mql5_module_codebase
Why don't you use what already exists - especially because you are a beginner?
Here is just what already exists in the CodeBase: https://www.mql5.com/en/search#!keyword=SAR%20TRailing%20Stop&module=mql5_module_codebase
Thanks Carl, very helpful link. Much appreciated
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
an anyone in a nutshell explain the use of the Parabolic SAR? Would I use it to set my stops once in a trade?
Any feedback would be much appreciated....
Thanks..
Marc