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
pooh Since offline charts are not standardized at all (seen a lot of different ways people wrote code for offline charts), some questions :
Hi Mladen,
Thanks for your response. Regarding your question, the symbols are shown as they are on my offline chart. Example: EURUSD is shown as EURUSD. As for your 2nd question, I'm not clear about how to answer it, so I attached here a screen shot of my offline chart.
Data of my offline chart (above m1) is converted from history data I downloaded. I use offline platform to develop EA, backtest EA, and manually backtest trading strategies.
Hi Yigal, Everything looks good, in case your not familiar would suggest you do a search around the forum for either SSA or Triangular Moving Average Centered. What is going on is especially in lower time frame actually all time frames, just more pronounced in lower, is these indicators are recalculating their positions, which means a lot of times what your seeing now very possibly will change.
Thank you Mrtools,
However i my understanding it should recalculate itself without being refreshed, should it not?
...
Try out this version too too see if it will work or not
If it is not working, can you somehow, attach the offline data you are using so that I could test it too?
Hi Mladen,
Thanks for your response. Regarding your question, the symbols are shown as they are on my offline chart. Example: EURUSD is shown as EURUSD. As for your 2nd question, I'm not clear about how to answer it, so I attached here a screen shot of my offline chart.
Data of my offline chart (above m1) is converted from history data I downloaded. I use offline platform to develop EA, backtest EA, and manually backtest trading strategies.Try out this version too too see if it will work or not If it is not working, can you somehow, attach the offline data you are using so that I could test it too?
Hi Mladen,
I just tried and this v1.02 plus works with offline chart. Thank you so much !
pooh
Thank you Mrtools, However i my understanding it should recalculate itself without being refreshed, should it not?
Yigal, when there is a new tick the indicator refreshes itself, and at the same time it is receiving new data to recalculate its position.
Yigal, when there is a new tick the indicator refreshes itself, and at the same time it is receiving new data to recalculate its position.
Mrtools,
That is exactly what is not happening. I have to remove indicator and attach it again in order to recalculate/refresh. And basically that was the original question. I don't mind it recalculating itself, but it's pain in the ... to constantly change timeframes or removing/attaching the indicator. Sorry if I didn’t make myself clear.
Mrtools, That is exactly what is not happening. I have to remove indicator and attach it again in order to recalculate/refresh. And basically that was the original question. I don't mind it recalculating itself, but it's pain in the ... to constantly change timeframes or removing/attaching the indicator. Sorry if I didn’t make myself clear.
Yigal,
Pretty sure I found the problem, should work correctly now.Sorry about that!
Yigal, Pretty sure I found the problem, should work correctly now.Sorry about that!
Thank you, Mrtools!
Hi Mladen,
John L Person presented a pivot based system in his book Forex Conquered-High Probability Systems and Strategies for Active Traders. I attached below the Easy Language codes for this system from the book. I'm not familiar with Easy Language. The backtest result is quite impressive. However, it seems to me he used data from "current" day in the codes. Hence I don't think the EA is robust. Could you please take a look at the codes and confirm if data from current day is used ? Thanks.
Strategy: JP_Piv_FastStoch
Inputs: NumPIPs( 10 ), StpPIPs( 100 ), PrftPIPs( 40 ), StochBuyPercent( 22 ),
StochSellPercent( 72 ), StochLength( 14 ), SmoothingLength1( 3 ),
SmoothingLength2( 3 );
Variables: S1( 0 ), S2( 0 ), S3( 0 ), R1( 0 ), R2( 0 ), R3( 0 ), PP( 0 ), TodaysHigh(
0 ), YestHigh( 0 ), TodaysLow( 0 ), YestLow( 0 ), TodaysClose( 0 ), YestClose(
0 ),oFastK( 0 ), oFastD( 0 ), oSlowK( 0 ), oSlowD( 0 ) ;
If Time = SessionFirstBarTime(1, 1) then begin
YestHigh = TodaysHigh ;
YestLow = TodaysLow ;
YestClose = Close[1] ;
TodaysHigh = High ;
TodaysLow = Low ;
PP = ( YestHigh + YestLow + YestClose ) / 3 ;
R1 = PP * 2 – YestLow ;
R2 = PP + YestHigh – YestLow ;
R3 = R2 + YestHigh – YestLow ;
S1 = PP * 2 – YestHigh ;
S2 = PP – YestHigh + YestLow ;
S3 = S2 – YestHigh + YestLow ;
end
else begin
if High > TodaysHigh then
TodaysHigh = High ;
if Low < TodaysLow then
TodaysLow = Low ;
end ;
Value1 = Stochastic( High, Low, Close, StochLength, SmoothingLength1,
SmoothingLength2, 1, oFastK, oFastD, oSlowK, oSlowD ) ;
If MRO(oFastK crosses over StochBuyPercent, 5, 1) > –1 and MRO(oFastD
crosses over StochBuyPercent, 5, 1) > –1 and
oFastK > StochBuyPercent and oFastD > StochBuyPercent and
(Low > S1 – NumPIPs points and Low < S1 + NumPIPs points) or
(Low > S2 – NumPIPs points and Low < S2 + NumPIPs points) or
(Low > S3 – NumPIPs points and Low < S3 + NumPIPs points) then
Buy next bar at market;
If MRO(oFastK crosses under StochSellPercent, 5, 1) > –1 and MRO(oFastD
crosses under StochSellPercent, 5, 1) > –1 and
oFastK < StochSellPercent and oFastD < StochSellPercent and
(High > R1 – NumPIPs points and High < R1 + NumPIPs points) or
(High > R2 – NumPIPs points and High < R2 + NumPIPs points) or
Trading Systems: Combining Pivots with Indicators 207
(High > R3 – NumPIPs points and High < R3 + NumPIPs points) then
Sellshort next bar at market;
SetStopLoss(StpPIPs points * BigPointValue);
SetProfitTarget(PrftPIPs points * BigPointValue);
Default Values for Rule Inputs
numPIPs = 10
StochBuyPercent = 22
...
pooh
That is the way how it "remembers" current days high and low to be used for next day pivots calculations, so it works OK as far as that is concerned (no flaw in that part)
What I don't see from the equity curve graph is what instrument are those tests results for. In my experience results of using pivot points on forex symbols are not as good as when they are applied to stocks
Hi Mladen,
John L Person presented a pivot based system in his book Forex Conquered-High Probability Systems and Strategies for Active Traders. I attached below the Easy Language codes for this system from the book. I'm not familiar with Easy Language. The backtest result is quite impressive. However, it seems to me he used data from "current" day in the codes. Hence I don't think the EA is robust. Could you please take a look at the codes and confirm if data from current day is used ? Thanks.
Strategy: JP_Piv_FastStoch
Inputs: NumPIPs( 10 ), StpPIPs( 100 ), PrftPIPs( 40 ), StochBuyPercent( 22 ),
StochSellPercent( 72 ), StochLength( 14 ), SmoothingLength1( 3 ),
SmoothingLength2( 3 );
Variables: S1( 0 ), S2( 0 ), S3( 0 ), R1( 0 ), R2( 0 ), R3( 0 ), PP( 0 ), TodaysHigh(
0 ), YestHigh( 0 ), TodaysLow( 0 ), YestLow( 0 ), TodaysClose( 0 ), YestClose(
0 ),oFastK( 0 ), oFastD( 0 ), oSlowK( 0 ), oSlowD( 0 ) ;
If Time = SessionFirstBarTime(1, 1) then begin
YestHigh = TodaysHigh ;
YestLow = TodaysLow ;
YestClose = Close[1] ;
TodaysHigh = High ;
TodaysLow = Low ;
PP = ( YestHigh + YestLow + YestClose ) / 3 ;
R1 = PP * 2 – YestLow ;
R2 = PP + YestHigh – YestLow ;
R3 = R2 + YestHigh – YestLow ;
S1 = PP * 2 – YestHigh ;
S2 = PP – YestHigh + YestLow ;
S3 = S2 – YestHigh + YestLow ;
end
else begin
if High > TodaysHigh then
TodaysHigh = High ;
if Low < TodaysLow then
TodaysLow = Low ;
end ;
Value1 = Stochastic( High, Low, Close, StochLength, SmoothingLength1,
SmoothingLength2, 1, oFastK, oFastD, oSlowK, oSlowD ) ;
If MRO(oFastK crosses over StochBuyPercent, 5, 1) > –1 and MRO(oFastD
crosses over StochBuyPercent, 5, 1) > –1 and
oFastK > StochBuyPercent and oFastD > StochBuyPercent and
(Low > S1 – NumPIPs points and Low < S1 + NumPIPs points) or
(Low > S2 – NumPIPs points and Low < S2 + NumPIPs points) or
(Low > S3 – NumPIPs points and Low < S3 + NumPIPs points) then
Buy next bar at market;
If MRO(oFastK crosses under StochSellPercent, 5, 1) > –1 and MRO(oFastD
crosses under StochSellPercent, 5, 1) > –1 and
oFastK < StochSellPercent and oFastD < StochSellPercent and
(High > R1 – NumPIPs points and High < R1 + NumPIPs points) or
(High > R2 – NumPIPs points and High < R2 + NumPIPs points) or
Trading Systems: Combining Pivots with Indicators 207
(High > R3 – NumPIPs points and High < R3 + NumPIPs points) then
Sellshort next bar at market;
SetStopLoss(StpPIPs points * BigPointValue);
SetProfitTarget(PrftPIPs points * BigPointValue);
Default Values for Rule Inputs
numPIPs = 10
StochBuyPercent = 22