Welcome Guest
You can search the forum and read articles
If you would like to post an article please sign in or Create free account

Sign in





Search articles by Keyword
Search articles by Category
FAQ
  • Trading IQ Game prizes (1)
  • System performances (6)
  • General FAQ (41)
Precision Trading Systems Products
  • Mach-Trend (13)
  • PLA Dynamical (23)
  • Precision Stop (18)
  • Precision Index Oscillator (21)
  • Precision Divergence Finder (8)
  • Demand Index (7)
  • Percent Asymmetric (13)
  • Precision Probability Index (13)
  • Gravity Model (Research project) (2)
Platform type
  • Ninja Trader (44)
  • MultiCharts (32)
  • Tradestation (28)
  • Metatrader 4 (17)
  • Metatrader 5 (10)
  • ESignal (3)
  • Metastock (2)
  • Amibroker (2)
  • SierraChart (2)
Level of experience
  • Advanced (33)
  • Intermediate (41)
  • Beginner (34)
Instrument-Market type
  • Stocks (14)
  • Indices (9)
  • Futures (22)
  • Forex (12)
  • Bonds (3)
Technical Analysis
  • Interesting charts (5)
  • New highs or low breakouts (3)
  • Patterns and Methods (15)
  • Stop losses where to place them (4)
Word Interest rates
  • United Kingdom (5)
  • USA (1)
  • India (0)
  • Japan (0)
Forum opertations
  • Updates needed (0)
  • Suggestions to improve forum (0)
  • Request new category (0)
Trading IQ Game
  • Operations (3)
  • Tips (2)
World News
  • News of interest (6)
  • Stockmarket sensitive news (3)
  • Technological developments (2)
World economy
  • Germany (1)
  • China (0)
  • United Kingdom (2)
  • USA (0)
  • Japan (0)
  • Eurozone (1)
Psychology
  • Human error (8)
  • Trading psychology (6)
  • Self improvement methods (1)
Programming - Code examples
  • Easy Language (9)
  • VB.Net (0)
  • Ninja Script (2)
  • Java (0)
Quantum Physics
  • Strange things (1)
  • Fractals (1)
UK Property
  • London House prices (3)
  • UK House prices (1)
Genius people
  • Albert Einstein (0)
  • Richard Feynman (0)
  • Albert Bartlett (0)
Computing
  • Operating system comparison (0)
Fracking
  • UK Fracking (0)
  • USA Fracking (0)
Futurology
  • Predictions for the future (2)
  • David Goodstein (0)
Philosophy
  • Proverbs (0)
No Image
User id RM1 May 19th 2023
View profile
Forum rating NA
Trading IQ NA
PLA DYNAMICAL PLOT TO HIGHLIGHT IF ABOVE OR BELOW CLOSE



<>

I am happy with the precision decision index indicator, I was wondering if you could modify the PLA Dynamical GOLD indicator,
Instead of seeing the moving average line, would it be possible for a green or red ball to form when price closes above or below the moving average used.

<>

Yes, the code is below.

First of all open up Tradestation development environment, then click on file > new > indicator

Paste this code into it and click on compile

After you add the indicator to the chart, you can set the style to "point" and weight to the maximum to make the big ball.
Set scaling to same as instrument.

This code will work as long as your current license is valid as it is calling the PLA Dynamical GOLD function.

Please be aware if you use this method as a trade entry method, it will give signals earlier, but will generate more whipsaw trades.
Sometimes if the market makes a move and doesn't come back then it will give you the signal ahead of the crowd.

// Sample code to highlight PLA Dynamical if close is above or below it

inputs:Price(c),Length(60),Speed(80),Overshoot(1),Anti_reverse(0),Anti_rev_per(0.01),Upcolour(green),Dncolour(red);

vars: pla2(c);


pla2= PLA_D_GOLD_Func_v1.00(length,price,speed,overshoot,anti_reverse,anti_rev_per);


if pla2< CLOSE then setplotcolor(1,upcolour);
if pla2> CLOSE then setplotcolor(1,dncolour);

plot1(pla2,"PLA_DynamicalGOLD");

// end of sample code
user image









Disclaimer