NexusFi: Find Your Edge


Home Menu

 





Polychromatic conversion to trade station


Discussion in EasyLanguage Programming

Updated
      Top Posters
    1. looks_one anahat with 12 posts (1 thanks)
    2. looks_two Nicolas11 with 6 posts (2 thanks)
    3. looks_3 RM99 with 2 posts (0 thanks)
    4. looks_4 Quick Summary with 1 posts (0 thanks)
    1. trending_up 8,593 views
    2. thumb_up 4 thanks given
    3. group 5 followers
    1. forum 22 posts
    2. attach_file 0 attachments




 
Search this Thread

Polychromatic conversion to trade station

  #11 (permalink)
anahat
pinole california
 
Posts: 16 since Jul 2012
Thanks Given: 0
Thanks Received: 1

that means for everytrade there is 10,000 worth of equity being bought
keep in mind this is for long entry only.. buy when poly crosses above .2 sell when crosses -.04
no short entries are include

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
REcommedations for programming help
Sierra Chart
Exit Strategy
NinjaTrader
How to apply profiles
Traders Hideout
ZombieSqueeze
Platforms and Indicators
Trade idea based off three indicators.
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
Just another trading journal: PA, Wyckoff & Trends
25 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
22 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #12 (permalink)
anahat
pinole california
 
Posts: 16 since Jul 2012
Thanks Given: 0
Thanks Received: 1

im going to try to hit it with an adx > 25 filter and see what i get

Reply With Quote
  #13 (permalink)
 
Nicolas11's Avatar
 Nicolas11 
near Paris, France
 
Experience: Beginner
Platform: -
Trading: -
Posts: 1,071 since Aug 2011
Thanks Given: 2,232
Thanks Received: 1,769


Do you use a stop-loss ?

Visit my NexusFi Trade Journal Reply With Quote
  #14 (permalink)
anahat
pinole california
 
Posts: 16 since Jul 2012
Thanks Given: 0
Thanks Received: 1

no i didnt u can pm me i can send you my long entry and exit scripts and u can test and lemme know ur results...

Reply With Quote
  #15 (permalink)
anahat
pinole california
 
Posts: 16 since Jul 2012
Thanks Given: 0
Thanks Received: 1

or you know what im not going to be like that i will post them after i get back from the gym in about an hour or two

Reply With Quote
  #16 (permalink)
 
Nicolas11's Avatar
 Nicolas11 
near Paris, France
 
Experience: Beginner
Platform: -
Trading: -
Posts: 1,071 since Aug 2011
Thanks Given: 2,232
Thanks Received: 1,769

No need to do anything through PM.
(I mean: you can PM me if you want, but no need to handle what is discussed in this thread by PM.)
Anyway, I do not use Trade Station. So I could not cross-check your results.
My point was just that, as you know, it is not really wise / reasonable to trade without stop-loss. You perhaps should implement one in your strategy.

Visit my NexusFi Trade Journal Reply With Quote
  #17 (permalink)
 RM99 
Austin, TX
 
Experience: Advanced
Platform: TradeStation
Trading: Futures
Posts: 839 since Mar 2011
Thanks Given: 124
Thanks Received: 704

I've tested it out and frankly, I don't see much difference from a host of other momentum indicators.

The problem with single indicators, is that the vast majority are lagging....to the point that by the time you recognize a move, half of it is already gone. If you try to ratchet down the sensitivity, then you also include a bunch of false signals.

You could use this in convergence/divergence or in conjunction with other dynamics, but stand alone....even on a wide range of settings, the value rises with upward bars and falls with downward bars...nothing really groundbreaking.

As far as thresholds to buy or sell, I find that to be fairly curve fitted.......you could dial the settings in to be fairly profitable....but even slight changes in market structure can have drastic effects on performance with unseen/future data.

I'd try to use this in conjunction with something else........perhaps something totally price based (localized support/resistance).....etc.

"A dumb man never learns. A smart man learns from his own failure and success. But a wise man learns from the failure and success of others."
Reply With Quote
  #18 (permalink)
anahat
pinole california
 
Posts: 16 since Jul 2012
Thanks Given: 0
Thanks Received: 1

ill try the stop loss but i agree with you rm99 in the class of momentum indicators i think it is one noting i think to have a complete sytem u kinda have it all your band indicators, momentum, volume indicators, combined with moving averages or resistance kinda have to pick the ones in the categories that fit ur trading style aswell im looking for high accuracy trades and more frequent trading so i dont think that the 40-55% accuracy this gave me does to well *by itself combined with other thing accuracy will def go up..but i am just learning to program and this is kinda my first go at it so i am very happy
thanks you alll
my next mission is slope of adx ill post it in a new thread if i need help

ps here are my scripts just to be thourough
inputs: Price( Close ),Length( 8 );
Variables:
num ( 0 ),
indexN ( 0 ),
accuN ( 0 ),
denom ( 0 ),
indexD ( 0 ),
accuD ( 0 ),
offset ( 0 ),
Pm ( 0 );
accuN = 0;
for indexN = 1 to length+1 begin
if indexN > length then offset = length else offset = indexN;
accuN = accuN + (price - price[offset]) / SquareRoot(indexN);
end;
num = accuN;

accuD = 0;
for indexD = 1 to length+1 begin
accuD = accuD + SquareRoot(indexD);
end;
denom = accuD;
pm = (num/denom);






if Currentbar > 1 and Pm crosses below -.04 then
{ CB > 1 check used to avoid spurious cross confirmation at CB = 1 }
Sell ( "Poly SE" ) next bar at market ;


---
inputs: Price( Close ),Length( 8 );
Variables:
num ( 0 ),
indexN ( 0 ),
accuN ( 0 ),
denom ( 0 ),
indexD ( 0 ),
accuD ( 0 ),
offset ( 0 ),
Pm ( 0 );
accuN = 0;
for indexN = 1 to length+1 begin
if indexN > length then offset = length else offset = indexN;
accuN = accuN + (price - price[offset]) / SquareRoot(indexN);
end;
num = accuN;

accuD = 0;
for indexD = 1 to length+1 begin
accuD = accuD + SquareRoot(indexD);
end;
denom = accuD;
pm = (num/denom);






if Currentbar > 1 and Pm crosses above .02 then
{ CB > 1 check used to avoid spurious cross confirmation at CB = 1 }
Buy ( "Poly LE" ) next bar at market ;

Reply With Quote
  #19 (permalink)
 
Nicolas11's Avatar
 Nicolas11 
near Paris, France
 
Experience: Beginner
Platform: -
Trading: -
Posts: 1,071 since Aug 2011
Thanks Given: 2,232
Thanks Received: 1,769

@anahat,

If you are "just learning to program", do not forget to take into account commissions and slippage. I do not know Trade Station, but I am sure that there are parameters for this.

Moreover, stop-loss are necessary.

And, typically, for a long, ( entry - stop-loss) in $ shall be 1% of the capital (or another %). This mechanically limits the size of the position.
(Of course, there are other ways to size position. This is just the most basic.)

Take care of the "maximum intraday drawdown".
In the above test, it was roughly -$11,500.
It means that, if you had begun this system just at the start of the drawdown, your account would have decreased from $50,000 to $38,500. Would you have continued to use this system in real life? Me, probably not.

The best performance indicator is, for me, the "look" of the equity curve. The more it climbs up smoothly, the better.

Nicolas

Visit my NexusFi Trade Journal Reply With Quote
  #20 (permalink)
 
Nicolas11's Avatar
 Nicolas11 
near Paris, France
 
Experience: Beginner
Platform: -
Trading: -
Posts: 1,071 since Aug 2011
Thanks Given: 2,232
Thanks Received: 1,769


Another idea: there is a risk of curve-fitting.
Are the parameters robust?
If you change a little 8, 0.2 and -0.04 (for instance to 6, 0.15 and -0.03), what is the impact on the performance? small degradation or huge degradation?
If there is a huge degradation, it is probable that your parameters luckily fit the past. But the performance will not repeat itself in the future.

Visit my NexusFi Trade Journal Reply With Quote
Thanked by:




Last Updated on February 24, 2018


© 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