Big Mike's Trading Forum
 

Go Back   Big Mike's Trading Forum

> Trading Forums > Platforms and Indicators > NinjaTrader > NinjaTrader Programming


Notices
     

Perrys Trading -> Strategy - development
Started:August 4th, 2010 (04:57 PM) by wgreenie Views / Replies:37,866 / 257
Last Reply:August 21st, 2012 (10:09 AM) Attachments:96

Welcome to Big Mike's Trading Forum.

Welcome, Guest!

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

BMT is 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
     

Reply
 96  
 
Thread Tools Search this Thread

Perrys Trading -> Strategy - development

Old August 14th, 2010, 03:21 PM   #11 (permalink)
 Vendor: www.ezcolortrading.com 
Cambridge, Ontario
 
Trading Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Zen-Fire
Favorite Instrument: 6E
 
Posts: 1,772 since Dec 2009
Thanks: 1,258 given, 1,185 received

Sharing of PerrySetUpV3c Version (BETA)

After sim-trading Method 1 for the past two weeks, I have modified the earlier BETA strategy as enclosed (still BETA).

Hopefully PerrySetUpV3c has captured Method 1's suggested entry criteria PLUS the optional requirements based on my preference. We may use different methods to code the entry requirements. I mapped them out on the enclosed jpeg file to facilitate your adapting them to your needs.

Note: Codes for Short are mostly opposite except Item 6.

This will be the last attempt from my end. I realize auto-trading is fun yet one must have a cushion to accommodate the occasional drawdown of a few Ks. Not to mention he/she will not lose zozozo when a trade or trades for certain days are not working to his/her favor.

I sincerely hope that the enclosed may help some of you visualize the signals. Please bear in mind that it's not 100% matching the discretionary method. My guess: Most indicators are lagged and if one or a few not happening at the same time, the strategy won't fire.

Enjoy!

Beth

Good Trading is about Trading Right!
Want What the Market Wants!
Trade With the Trend!
Attached Thumbnails
Perrys Trading -> Strategy - development-method-1-perrysetupv2c.jpg  
Attached Files
Register to download File Type: cs PerrySetUpV2c.cs (7.2 KB, 75 views)
Reply With Quote
     
The following 2 users say Thank You to wgreenie for this post:
     

Old August 14th, 2010, 06:31 PM   #12 (permalink)
Just starting out...
Toronto
 
Trading Experience: Intermediate
Platform: NinjaTrader
 
Posts: 8 since Aug 2010
Thanks: 0 given, 2 received

Where is JeffsUniversalMovingAverage?

Thank you for sharing your code.

I have read your code. Where is the "JeffsUniversalMovingAverage" which you applied in your code? Thanks.


wgreenie View Post
After sim-trading Method 1 for the past two weeks, I have modified the earlier BETA strategy as enclosed (still BETA).

Hopefully PerrySetUpV3c has captured Method 1's suggested entry criteria PLUS the optional requirements based on my preference. We may use different methods to code the entry requirements. I mapped them out on the enclosed jpeg file to facilitate your adapting them to your needs.

Note: Codes for Short are mostly opposite except Item 6.

This will be the last attempt from my end. I realize auto-trading is fun yet one must have a cushion to accommodate the occasional drawdown of a few Ks. Not to mention he/she will not lose zozozo when a trade or trades for certain days are not working to his/her favor.

I sincerely hope that the enclosed may help some of you visualize the signals. Please bear in mind that it's not 100% matching the discretionary method. My guess: Most indicators are lagged and if one or a few not happening at the same time, the strategy won't fire.

Enjoy!

Beth


Reply With Quote
     

Old August 14th, 2010, 07:56 PM   #13 (permalink)
 Vendor: www.ezcolortrading.com 
Cambridge, Ontario
 
Trading Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Zen-Fire
Favorite Instrument: 6E
 
Posts: 1,772 since Dec 2009
Thanks: 1,258 given, 1,185 received



51friend View Post
Where is the "JeffsUniversalMovingAverage" which you applied in your code?

Hi 51friend

You will find the indicator from the Elite Downloads section. Else simply use a regular EMA.

Beth

Good Trading is about Trading Right!
Want What the Market Wants!
Trade With the Trend!
Reply With Quote
     

Old August 16th, 2010, 04:48 PM   #14 (permalink)
Elite Member
Fairfax, VA
 
Trading Experience: Intermediate
Platform: NinjaTrader
Broker/Data: AMP
Favorite Instrument: ES, Currency Futures
 
Posts: 25 since Apr 2010
Thanks: 8 given, 1 received


wgreenie View Post
After sim-trading Method 1 for the past two weeks, I have modified the earlier BETA strategy as enclosed (still BETA).

Hopefully PerrySetUpV3c has captured Method 1's suggested entry criteria PLUS the optional requirements based on my preference. We may use different methods to code the entry requirements. I mapped them out on the enclosed jpeg file to facilitate your adapting them to your needs.

Note: Codes for Short are mostly opposite except Item 6.

This will be the last attempt from my end. I realize auto-trading is fun yet one must have a cushion to accommodate the occasional drawdown of a few Ks. Not to mention he/she will not lose zozozo when a trade or trades for certain days are not working to his/her favor.

I sincerely hope that the enclosed may help some of you visualize the signals. Please bear in mind that it's not 100% matching the discretionary method. My guess: Most indicators are lagged and if one or a few not happening at the same time, the strategy won't fire.


Enjoy!

Beth



Hi Beth,
Can you tell me if you are using the original JeffsUniversalMovingAverage or the current version JeffsUniversalMovingAverage_v1? In looking at your strategy code, I see it listed without the"_v1" and am wondering why. I tried to set your strategy up in NT6.5 and compile it but i keep getting errors. I can't find the original indicator anywhere - only one seems to be the "_v1" version.

I also tried to open the strategy wizard and see how that works - i got as far as naming my strategy and got lost on the 2nd screen - sigh! Whenever I try to read the dang help files in NT, I feel like I'm reading a foreign language! I'd appreciate any hints you can give me.

Thanks a lot,
Susan

Reply With Quote
     

Old August 17th, 2010, 09:33 PM   #15 (permalink)
 Vendor: www.ezcolortrading.com 
Cambridge, Ontario
 
Trading Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Zen-Fire
Favorite Instrument: 6E
 
Posts: 1,772 since Dec 2009
Thanks: 1,258 given, 1,185 received

Current BMT User Poll

Should sim traders that pretend to trade cash be allowed on BMT?

 

porpor1234 View Post
Hi Beth,
Can you tell me if you are using the original JeffsUniversalMovingAverage or the current version JeffsUniversalMovingAverage_v1? In looking at your strategy code, I see it listed without the"_v1" and am wondering why. I tried to set your strategy up in NT6.5 and compile it but i keep getting errors. I can't find the original indicator anywhere - only one seems to be the "_v1" version.

I also tried to open the strategy wizard and see how that works - i got as far as naming my strategy and got lost on the 2nd screen - sigh! Whenever I try to read the dang help files in NT, I feel like I'm reading a foreign language! I'd appreciate any hints you can give me.

Thanks a lot,
Susan

Hi Susan

I used the original indicator. Tried to locate the v1 version from both Downloads (Regular and Elite) minutes ago with no success. Let me suggest the following since you know how to use the Strategy Wizard (that's what I've been using to find out the code since I do not know C+ language):

1. Control Center - Tools - New NinjaScript - Strategy

Next (Create a new strategy) - Next (General) - Next (User Defined Inputs) - Add (Conditions and Actions)
- Indicators (click on "+") - select the indicator (for your case will be JeffsUniversalMovingAverage_v1)

2. You notice from the enclosed that the variables listed under Plot are the entry criteria available for coding. To save time, I usually choose MyInput0 for the right section UNLESS I need to find out a second code for another plot.

3. After pressing OK, choose View Code and you will get the code for the condition.

If you're certain of the name of your indicator, you may try to add "_v1" to the BETA strategy as quite often plots will remain the same, ie

1. Control Center - Tools - Edit NinjaScript - Strategy

2. Choose PerrySetUpV2c

3. Add "_v1" to the respective codes for both Long and Short conditions

4. Press "F5" to compile

Hopefully Compile Successfully. Else check the error message which may give you some hints what's going wrong.

Hope the above help. Good Luck!

Beth

Good Trading is about Trading Right!
Want What the Market Wants!
Trade With the Trend!
Attached Thumbnails
Perrys Trading -> Strategy - development-condition-builder.jpg   Perrys Trading -> Strategy - development-view-code.jpg  
Reply With Quote
     
The following user says Thank You to wgreenie for this post:
     

Old August 18th, 2010, 09:48 AM   #16 (permalink)
 Vendor: www.ezcolortrading.com 
Cambridge, Ontario
 
Trading Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Zen-Fire
Favorite Instrument: 6E
 
Posts: 1,772 since Dec 2009
Thanks: 1,258 given, 1,185 received

Additional tips (based on my trouble-shooting experience):

1. When you're editing a strategy (or indicator), you may want to rename it and not replacing the original one. If yes, upon amending the strategy, right-click and choose Save As. Then "F5" after naming your strategy to compile.

2. If compile unsuccessfully, pay attention to the name of the strategy/indicator in question. Sometimes it may not be the one you're working on. That happened to me a few times.

3. Please bear in mind that if there's a strategy or indicator that has programming issues, NJ will not allow you to import or export NinjaScript until you either remove it from the Strategy/Indicator folder OR fix the code. For me, quite often I may end up removing the problemed one from the folder esp if I need to import a NinjaScript urgently.

Beth

Good Trading is about Trading Right!
Want What the Market Wants!
Trade With the Trend!
Reply With Quote
     

Old August 18th, 2010, 10:25 AM   #17 (permalink)
Elite Member
Marlboro, New York, United States of America
 
Trading Experience: Advanced
Platform: NinjaTrader, TOS
Favorite Instrument: TF
 
glennw's Avatar
 
Posts: 13 since Aug 2010
Thanks: 5 given, 31 received

Beth, I've downloaded your strategy, but haven't had time to play with it yet.
I've been testing the basic Perry method on the TF, ES, and 6E on simulator. So far, very good results. This method is excellent for providing plenty of trades, yet it takes much of the guesswork out of proper entry. It's really the best overall method I've seen to date. I've had enough experience to recognize the benefits of the method, being mainly reduction of stress in trading decision making. So I think the Perry method is well suited to both newbie, and experienced trader alike.

Reply With Quote
     

Old August 18th, 2010, 02:30 PM   #18 (permalink)
Elite Member
Fairfax, VA
 
Trading Experience: Intermediate
Platform: NinjaTrader
Broker/Data: AMP
Favorite Instrument: ES, Currency Futures
 
Posts: 25 since Apr 2010
Thanks: 8 given, 1 received


wgreenie View Post
Additional tips (based on my trouble-shooting experience):

1. When you're editing a strategy (or indicator), you may want to rename it and not replacing the original one. If yes, upon amending the strategy, right-click and choose Save As. Then "F5" after naming your strategy to compile.

2. If compile unsuccessfully, pay attention to the name of the strategy/indicator in question. Sometimes it may not be the one you're working on. That happened to me a few times.

3. Please bear in mind that if there's a strategy or indicator that has programming issues, NJ will not allow you to import or export NinjaScript until you either remove it from the Strategy/Indicator folder OR fix the code. For me, quite often I may end up removing the problemed one from the folder esp if I need to import a NinjaScript urgently.

Beth

Thanks for the tips, Beth. I will try the edit 1st before trying to build a new strategy but I think I tried that already and it failed to compile. The errors were ref'ing that Jeff's indicator and something called MAType, saying it didn't exist or it couldn't find it - something like that. Not quite sure if I did something else wrong, though, so will try again. Also not sure I am smart enough to build one, even with the wizard. I was thinking I had to look for a video if there is one, to lead me by the nose! LOL.

Susan

Reply With Quote
     

Old August 18th, 2010, 02:41 PM   #19 (permalink)
Elite Member
Fairfax, VA
 
Trading Experience: Intermediate
Platform: NinjaTrader
Broker/Data: AMP
Favorite Instrument: ES, Currency Futures
 
Posts: 25 since Apr 2010
Thanks: 8 given, 1 received


wgreenie View Post
Hi Susan

I used the original indicator. Tried to locate the v1 version from both Downloads (Regular and Elite) minutes ago with no success. Let me suggest the following since you know how to use the Strategy Wizard (that's what I've been using to find out the code since I do not know C+ language):

1. Control Center - Tools - New NinjaScript - Strategy

Next (Create a new strategy) - Next (General) - Next (User Defined Inputs) - Add (Conditions and Actions)
- Indicators (click on "+") - select the indicator (for your case will be JeffsUniversalMovingAverage_v1)

2. You notice from the enclosed that the variables listed under Plot are the entry criteria available for coding. To save time, I usually choose MyInput0 for the right section UNLESS I need to find out a second code for another plot.

3. After pressing OK, choose View Code and you will get the code for the condition.

If you're certain of the name of your indicator, you may try to add "_v1" to the BETA strategy as quite often plots will remain the same, ie

1. Control Center - Tools - Edit NinjaScript - Strategy

2. Choose PerrySetUpV2c

3. Add "_v1" to the respective codes for both Long and Short conditions

4. Press "F5" to compile

Hopefully Compile Successfully. Else check the error message which may give you some hints what's going wrong.

Hope the above help. Good Luck!

Beth


Beth,

If you search for JeffsUniversalMovingAverage there are 2 places that come up with the _v1 and none for the original one. Under "Platforms and Indicators" it is posted under " NT7 MA region color indicator " by Breakout and Perry has also posted it in the Elite Forum.

Thanks for your reply and your help.
Susan

Reply With Quote
     

Old August 18th, 2010, 02:54 PM   #20 (permalink)
 Vendor: www.ezcolortrading.com 
Cambridge, Ontario
 
Trading Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Zen-Fire
Favorite Instrument: 6E
 
Posts: 1,772 since Dec 2009
Thanks: 1,258 given, 1,185 received



porpor1234 View Post
The errors were ref'ing that Jeff's indicator and something called MAType, saying it didn't exist or it couldn't find it - something like that.

Hi Susan

Try to do a printscreen on the error message to identify the coding line(s) in question.

Beth

Good Trading is about Trading Right!
Want What the Market Wants!
Trade With the Trend!
Attached Thumbnails
Perrys Trading -> Strategy - development-f5-compile-error-message.jpg  
Reply With Quote
     

Reply



Tags
6 range, 6e, account, accurate, adx, ai, analysis, angle, ati, ats, audio, auto strategy, auto-trading, automated, automated strategy, automation, bars, basic, beta, betterbrick, big mike, bot, breakout, calendar, calls, candle, cd, ces, challenge, change, chart, chart trader, charts, cl, close, cobc, code, coding, color, colors, combine, comparison, compile, condition, connection, contracts, control, create, custom, custom indicator, daily, data, data provider, data series, day, development, direction, discretionary, dow, downloads, editing, education, el, elite, ema, enter, entry, envelope, eod, error, errors, es, esignal, execution, exit, feed, file, fill, filled, filter, filters, fix, flatten, format, free, function, future, futures, gap, gaps, greater than, group, guide, hideout, high, historic, historical, historical data, homework, horizontal, how to, how-to, indicator, indicators, instrument, instruments, interest, interval, jma, language, learn, learning, life, line, list, live, living, load, lot, love, low, management, manual, market, market replay, master, math, medianrenko, method, mfe, mind, ml, money management, news, ninja, ninjascript, ninjatrader, note, nt, nt7, open, option, order, order entry, orders, package, paper, parameter, parameters, performance, perry, perry method, pivot, plan, platform, platforms, plot, practice, price, price_action, profit, profitable, programmer, programming, purpose, puts, question, questions, quick search, range, range bar, range chart, real time, reload, replay, retire, reverse, right-click, rules, sample, save, script, scripts, searching, series, settings, setup, signal, signals, sim, sim trading, sma, small, software, split, start, stop, stops, strategies, strategy, strategy wizard, stress, support, system, systems, targets, td, template, testing, tf, thank you, tick, ticks, time, time frames, trad, trade, trade management, trader, traders, trades, trading, trading method, trading system, training, type, universal, update, values, vendor, vision, volatility, volume, workspace, zone
     

Big Mike's Trading Forum > Trading Forums > Platforms and Indicators > NinjaTrader > NinjaTrader Programming > Perrys Trading -> Strategy - development

Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads
Thread Thread Starter Forum Replies Last Post
BLUELINE DELIGHT >>>Intraday Trading Strategy Guide<<< Gabriyele The Elite Circle 407 May 30th, 2013 07:29 AM
strategy development kavin729 NinjaTrader Programming 14 May 6th, 2012 02:31 PM
Perrys Trading Platform perryg Traders Hideout 1206 November 5th, 2011 01:07 AM
Building a PC for Discretionary/Automated Trading and Strategy Development nlhaines Tech Support 49 June 7th, 2011 01:47 PM
Strategy Condition Logic >> my wetware Trader.Jon NinjaTrader Programming 2 May 24th, 2010 04:17 PM


All times are GMT -4. The time now is 11:26 PM.

Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
Copyright © 2014 by Big Mike Trading. 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 2014-04-19 in 0.20 seconds with 20 queries on atlantis via your IP 54.204.134.183