NexusFi: Find Your Edge


Home Menu

 





ParabolicSAR function variables


Discussion in EasyLanguage Programming

Updated
    1. trending_up 1,894 views
    2. thumb_up 0 thanks given
    3. group 1 followers
    1. forum 1 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
Basura
Brisbane, Australia
 
Posts: 7 since Jan 2013
Thanks Given: 14
Thanks Received: 0

Hi there,

Trying to work with the ParabolicSAR(AfStep, AfLimit,oParCl(0),oParOp(0),oPosition(0),oTransition(0)) function and getting some strange results when returning historical values of oParCl(0).

-------------------------------------------------------------------------------------
Here's the relevant part of my code:

// PSAR test
Condition1 = var0 < open AND var0[1] > open[1];
Condition2 = var0 > open AND var0[1] < open[1];

IF condition1 then
BUY Round(Risklow*PositionSize,0) CONTRACTS NEXT BAR at MARKET
end;

if condition2 then
SellShort Round(Risklow*PositionSize,0) CONTRACTS NEXT BAR at MARKET
end;
-------------------------------------------------------------------------------------
When using the print() command, the var0[1] values are completely different to those plotted on the chart 1 bar ago!

I've used the same inputs for both the Afstep and Aflimit in both the strategy and the indicator on the chart. Time period is 3hr bars.

Any ideas?

Thanks!


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
April 2026 Jobs Report: +115k vs +65k Expected
Traders Hideout
TradingView Deploys AI to Monitor SEC Filings in Real Ti …
TradingView
Netherlands & Germany Surge as World Cup Field Narro …
Prediction Markets & Event Contracts
Iran Forward Curve: June 30 at 56% vs June 15 at 28% -- …
Prediction Markets & Event Contracts
Orban at 29pct as Hungary Votes Tomorrow -- McIlroy Surg …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Big Mike in Ecuador
197 thanks
Sober Journey With S&P
27 thanks
30 Sessions
20 thanks
BERN ALGOS algo trading journal
8 thanks
Volume Indicators
8 thanks




Last Updated on April 8, 2013


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts