NexusFi: Find Your Edge


Home Menu

 





ParabolicSAR function variables


Discussion in EasyLanguage Programming

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




 
Search this Thread

ParabolicSAR function variables

  #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?
Trade idea based off three indicators.
Traders Hideout
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
ZombieSqueeze
Platforms and Indicators
About a successful futures trader who didnt know anythin …
Psychology and Money Management
Cheap historycal L1 data for stocks
Stocks and ETFs
 




Last Updated on April 8, 2013


© 2024 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 - Privacy Policy - Downloads - Top
no new posts