rotational Trading PositionScore - AmiBroker | futures.io
futures.io futures trading
 

Go Back   futures.io

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > AmiBroker


rotational Trading PositionScore
Started:November 18th, 2016 (09:03 AM) by xxx11 Views / Replies:183 / 9
Last Reply:November 21st, 2016 (08:24 AM) Attachments:0

Welcome to futures.io.

Welcome, Guest!

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

We are 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
 
Thread Tools Search this Thread

rotational Trading PositionScore

Old November 18th, 2016, 09:03 AM   #1 (permalink)
Trading Apprentice
Stuttgart
 
Futures Experience: None
Platform: MetaTrader
Favorite Futures: DAX
 
Posts: 9 since Oct 2016
Thanks: 0 given, 0 received

rotational Trading PositionScore

Hello,

I have a problem with my code.

I calculate my performance and would like to trade if it is positive. I tried to code it.
Right now my code, only buys if my performance is positive. But the problem is that now it buys according the alphabet and not ccording to the highest performance.

Could andybody help me with this?

I thank all for help.

Reply With Quote
     

Old November 18th, 2016, 09:22 AM   #2 (permalink)
Trading Apprentice
Stuttgart
 
Futures Experience: None
Platform: MetaTrader
Favorite Futures: DAX
 
Posts: 9 since Oct 2016
Thanks: 0 given, 0 received

I think my thoughts were to complcated. It works.

But I have another question: I buy right now every month ( first trading day of month).

I would like to code that I buy the stocks every month but on the second trading day.

Does anybody knows how I could do this?

I tried the following:


newMonth = Month() != Ref(Month(), -1);
rotate = newMonth AND day() > 1;

But it does not work

Thanks eveyone helping me.

Reply With Quote
     

Old November 18th, 2016, 09:55 AM   #3 (permalink)
Market Wizard
Chicago Illinois USA
 
Futures Experience: Advanced
Platform: Ninja Trader
Broker/Data: IB
Favorite Futures: duh hammer!
 
wldman's Avatar
 
Posts: 2,055 since Aug 2011
Thanks: 966 given, 2,566 received
Forum Reputation: Legendary

Hey Men...


What trading platform and what language are you coding in? I'm sure the forum has a thread for both. There will be someone that can help, you need to let them find you.
Dan

Reply With Quote
     

Old November 18th, 2016, 09:58 AM   #4 (permalink)
Trading Apprentice
Stuttgart
 
Futures Experience: None
Platform: MetaTrader
Favorite Futures: DAX
 
Posts: 9 since Oct 2016
Thanks: 0 given, 0 received

thank you for your reply. I'm using Amibroker and the langugage AFL.

Reply With Quote
     

Old November 18th, 2016, 10:07 AM   #5 (permalink)
Market Wizard
Chicago Illinois USA
 
Futures Experience: Advanced
Platform: Ninja Trader
Broker/Data: IB
Favorite Futures: duh hammer!
 
wldman's Avatar
 
Posts: 2,055 since Aug 2011
Thanks: 966 given, 2,566 received
Forum Reputation: Legendary

I have not heard of that.

Futures Edge on FIO

Are you a NinjaTrader user?

 
I would suggest using the search feature. If you cant find a platform specific thread I'd ask in the "want your ninga trader indicator created for free thread. Hope that helps. Dan

Reply With Quote
     

Old November 18th, 2016, 10:09 AM   #6 (permalink)
Trading Apprentice
Stuttgart
 
Futures Experience: None
Platform: MetaTrader
Favorite Futures: DAX
 
Posts: 9 since Oct 2016
Thanks: 0 given, 0 received

ok thank you, I will try the search feature.

Reply With Quote
     

Old November 18th, 2016, 10:11 AM   #7 (permalink)
Market Wizard
Chicago Illinois USA
 
Futures Experience: Advanced
Platform: Ninja Trader
Broker/Data: IB
Favorite Futures: duh hammer!
 
wldman's Avatar
 
Posts: 2,055 since Aug 2011
Thanks: 966 given, 2,566 received
Forum Reputation: Legendary

I tagged you...

in to the NT thread thinking maybe someone there could direct you.

Reply With Quote
     

Old November 18th, 2016, 10:21 AM   #8 (permalink)
Trading Apprentice
Stuttgart
 
Futures Experience: None
Platform: MetaTrader
Favorite Futures: DAX
 
Posts: 9 since Oct 2016
Thanks: 0 given, 0 received

ok tahnk you very much!

Reply With Quote
     

Old November 19th, 2016, 09:09 AM   #9 (permalink)
Trading Apprentice
Stuttgart
 
Futures Experience: None
Platform: MetaTrader
Favorite Futures: DAX
 
Posts: 9 since Oct 2016
Thanks: 0 given, 0 received

Hi wldman,

thank you for your answer. What is NT thread? So far I could not find a solution.

Reply With Quote
     

Old November 21st, 2016, 08:24 AM   #10 (permalink)
Trading Apprentice
Stuttgart
 
Futures Experience: None
Platform: MetaTrader
Favorite Futures: DAX
 
Posts: 9 since Oct 2016
Thanks: 0 given, 0 received


Hello,

with the following code it works that it buys every second trading day.

newMonth = Month() != Ref(Month(), -1);
rotate = Ref( newMonth, -1 );

My problem is now that I would like to be in monthly trading, which means my code rotates monthly and calculates the perfomance from the month before. But in buys on the second trading day with the open price from the second day.

Could somebody please help me?

Reply With Quote
     

Reply



futures.io > Futures Trading, News, Charts and Platforms > Platforms and Indicators > AmiBroker > rotational Trading PositionScore

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)
 

NinjaTrader 8: Features and Enhancements, Tips and Tricks

Dec 6
 

Al Brooks: Stop Losing when a Good Trade goes Bad, Correcting Mistakes

Elite only
 

Trading Technologies: Algo Design Lab hands-on

Dec 13
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
rotational trading xxx11 AmiBroker 1 October 26th, 2016 07:57 AM
amibroker - rotational capital xxx11 AmiBroker 1 October 26th, 2016 07:47 AM
rotational trading strategy with MC.NET? jdfagan MultiCharts 1 September 25th, 2012 03:39 PM
Scams: Prediction Point Trading, Hindsight Trading, Market Mover Trading flipper26 Vendors and Product Reviews 5 August 6th, 2012 02:19 AM


All times are GMT -4. The time now is 06:07 AM.

Copyright © 2016 by futures.io. 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 2016-12-06 in 0.13 seconds with 19 queries on phoenix via your IP 54.158.157.24