NexusFi: Find Your Edge


Home Menu

 





Perrys Trading -> Strategy - development


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one MWinfrey with 52 posts (163 thanks)
    2. looks_two wgreenie with 48 posts (18 thanks)
    3. looks_3 porpor1234 with 18 posts (0 thanks)
    4. looks_4 fusion with 15 posts (9 thanks)
      Best Posters
    1. looks_one Braulio with 3.4 thanks per post
    2. looks_two MWinfrey with 3.1 thanks per post
    3. looks_3 max-td with 0.9 thanks per post
    4. looks_4 wgreenie with 0.4 thanks per post
    1. trending_up 96,113 views
    2. thumb_up 247 thanks given
    3. group 61 followers
    1. forum 259 posts
    2. attach_file 95 attachments




 
Search this Thread

Perrys Trading -> Strategy - development

  #11 (permalink)
 wgreenie 
Cambridge, Ontario
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Zen-Fire
Trading: 6E
Posts: 1,778 since Dec 2009
Thanks Given: 1,258
Thanks Received: 1,203

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
Click image for larger version

Name:	Method 1 PerrySetUpV2c.JPG
Views:	420
Size:	58.8 KB
ID:	19326  
Attached Files
Elite Membership required to download: PerrySetUpV2c.cs
Visit my NexusFi Trade Journal Started this thread Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
Trade idea based off three indicators.
Traders Hideout
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
MC PL editor upgrade
MultiCharts
What broker to use for trading palladium futures
Commodities
About a successful futures trader who didnt know anythin …
Psychology and Money Management
 
  #12 (permalink)
51friend
Toronto
 
Posts: 8 since Aug 2010
Thanks Given: 0
Thanks Received: 2

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
  #13 (permalink)
 wgreenie 
Cambridge, Ontario
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Zen-Fire
Trading: 6E
Posts: 1,778 since Dec 2009
Thanks Given: 1,258
Thanks Received: 1,203



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!
Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #14 (permalink)
 porpor1234 
Fairfax, VA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP
Trading: ES, Currency Futures
Posts: 25 since Apr 2010
Thanks Given: 8
Thanks Received: 1


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
  #15 (permalink)
 wgreenie 
Cambridge, Ontario
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Zen-Fire
Trading: 6E
Posts: 1,778 since Dec 2009
Thanks Given: 1,258
Thanks Received: 1,203


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
Click image for larger version

Name:	Condition Builder.JPG
Views:	295
Size:	51.7 KB
ID:	19323   Click image for larger version

Name:	View Code.JPG
Views:	319
Size:	85.6 KB
ID:	19324  
Visit my NexusFi Trade Journal Started this thread Reply With Quote
Thanked by:
  #16 (permalink)
 wgreenie 
Cambridge, Ontario
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Zen-Fire
Trading: 6E
Posts: 1,778 since Dec 2009
Thanks Given: 1,258
Thanks Received: 1,203

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!
Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #17 (permalink)
 
glennw's Avatar
 glennw 
Marlboro, New York, United States of America
 
Experience: Advanced
Platform: NinjaTrader, TOS
Trading: TF
Posts: 13 since Aug 2010
Thanks Given: 5
Thanks Received: 31

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
  #18 (permalink)
 porpor1234 
Fairfax, VA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP
Trading: ES, Currency Futures
Posts: 25 since Apr 2010
Thanks Given: 8
Thanks Received: 1


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
  #19 (permalink)
 porpor1234 
Fairfax, VA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP
Trading: ES, Currency Futures
Posts: 25 since Apr 2010
Thanks Given: 8
Thanks Received: 1


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
  #20 (permalink)
 wgreenie 
Cambridge, Ontario
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Zen-Fire
Trading: 6E
Posts: 1,778 since Dec 2009
Thanks Given: 1,258
Thanks Received: 1,203



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
Click image for larger version

Name:	F5 compile error message.JPG
Views:	324
Size:	150.3 KB
ID:	19218  
Visit my NexusFi Trade Journal Started this thread Reply With Quote




Last Updated on October 21, 2015


© 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