ParabolicSAR function variables - EasyLanguage Programming | futures trading

Go Back

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > TradeStation > EasyLanguage Programming

ParabolicSAR function variables
Started:April 8th, 2013 (07:50 AM) by Basura Views / Replies:420 / 1
Last Reply:April 8th, 2013 (07:50 AM) Attachments:0

Welcome to

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community. It's free and simple, and we will never resell your private information.

-- Big Mike

Thread Tools Search this Thread

ParabolicSAR function variables

Old April 8th, 2013, 07:50 AM   #1 (permalink)
Trading Apprentice
Brisbane, Australia
Futures Experience: Advanced
Platform: MC
Broker/Data: LMAX
Favorite Futures: FX, Equities
Posts: 7 since Jan 2013
Thanks: 14 given, 0 received

ParabolicSAR function variables

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

if condition2 then
SellShort Round(Risklow*PositionSize,0) CONTRACTS NEXT BAR at MARKET
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?


Reply With Quote

Old April 8th, 2013, 07:50 AM   #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.


Reply > Futures Trading, News, Charts and Platforms > Platforms and Indicators > TradeStation > EasyLanguage Programming > ParabolicSAR function variables

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Upcoming Webinars and Events (4:30PM ET unless noted)

NinjaTrader 8: Programming Profitable Trading Edges w/Scott Hodson

Elite only

Anthony Drager: Executing on Intermarket Correlations & Order Flow, Part 2

Elite only

Adam Grimes: Five critically important keys to professional trading

Elite only

Machine Learning Concepts w/FIO member NJAMC

Elite only

MarketDelta Cloud Platform: Announcing new mobile features

Dec 1

NinjaTrader 8: Features and Enhancements

Dec 6

Similar Threads
Thread Thread Starter Forum Replies Last Post
Global variables in NT Geir NinjaTrader Programming 24 March 31st, 2016 04:19 PM
Global Variables In TS c12345 EasyLanguage Programming 6 July 23rd, 2012 04:48 AM
MC 7.4 Global Variables kleff EasyLanguage Programming 4 May 12th, 2012 12:08 AM
Why are we Stacking these Variables? DonStar AmiBroker 1 January 25th, 2012 09:18 AM
Exposing variables kaywai NinjaTrader Programming 4 April 14th, 2011 11:58 AM

All times are GMT -4. The time now is 01:32 PM.

Copyright © 2016 by 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.
no new posts

Page generated 2016-10-26 in 0.08 seconds with 19 queries on phoenix via your IP