NexusFi: Find Your Edge


Home Menu

 





ParabolicSAR function variables


Discussion in EasyLanguage Programming

Updated
    1. trending_up 1,956 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?
Saylors 41-Month HODL Breaks: Strategy Sells 32 BTC as $ …
Prediction Markets & Event Contracts
Post-Summit Market Verdict: ES -1%, NQ -1.5%, 10-Year Yi …
Traders Hideout
Warsh Drops Easing Bias, December Hike Now Above 50% -- …
Prediction Markets & Event Contracts
Warsh Rate Hike at 40%, Iran June 15 Expires Tonight at …
Prediction Markets & Event Contracts
CME Raises Energy Futures Margins After Iran-War Volatil …
Commodities
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
15 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
1 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