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 August 17th 2014
View profile
Forum rating NA
Trading IQ NA
PLA DYNAMICAL GOLD TO SMOOTH INDICATORS AND CREATE FUNCTIONS ...PART 2


Method 2

If you are doing something more complex such as creating a signal or function or indicator using PLA Dynamical GOLD then this method is correct.

Example of creating an indicator with two plot from PLA Dynamical GOLD

PLA Dynamical GOLD has the following syntax to use for programming.

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

All the parts must be assigned a value for it to work correctly.



Below is an example piece of code that is used to smooth 2 different length RSI indicators with PLA Dynamical GOLD showing in 1 window.

In power language editor, click on file new indicator , type in a name EG My_smooth_PLA_RSI and copy the code below into the open window and click compile. It will then be shown in your indicator list

Inputs: Length(40), speed(40), overshoot(1), anti_reverse(1),anti_rev_per(0.01);

vars: smoothpla1(0),smoothpla2(0),indicator1(0),indicator2(0);

indicator1 = rsi(c,20);
indicator2= rsi(c,50);


smoothpla1= PLA_D_GOLD_Func_v1.00(length,indicator1,speed,overshoot,anti_reverse,anti_rev_per);

smoothpla2= PLA_D_GOLD_Func_v1.00(length,indicator2,speed,overshoot,anti_reverse,anti_rev_per);


PLOT1(smoothpla1,"TEST");
PLOT2(smoothpla2,"TEST2");


The variables called indicator1 and indicator2 can be changed to suit what you require.

In the example above you can notice the "price" input has been removed and replayed in the syntax by "indicator1"

smoothpla1= PLA_D_GOLD_Func_v1.00(length,indicator1,speed,overshoot,anti_reverse,anti_rev_per);

The important thing is to get the variables in the correct order.










Disclaimer