Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers, Unverified Users Joined: 10/28/2004(UTC) Posts: 3,111 Location: Perth, Western Australia
Was thanked: 16 time(s) in 16 post(s)
|
You can have one 'mother' script that contains calls to all the other values. Give each script a 'number'
0 - MACD 1 - RSI 2 - Stoch 3 - System 3
4 - System 4
etc
when a system returns an entry, raise 2 to the power of the system number and sum all the systems. This will give a unique combination that with a little bit of time, and knowledge of binary numbers will indicate which systems have returned the entry signal...
e.g
0 - MACD, entry=1, entry*pow(2,0)=1 1 - RSI, entry=0, entry*pow(2,1)=0 2 - Stoch, entry=1, entry*pow(2,2)=4 3 - System 3, entry=0, entry*pow(2,3)=0 4 - System 4, entry=1, pow(2,4)=16
16+4+1=21
If your exploration returns a value of 21 then the only possible combination is that MACD and Stoch and System4 were returning entries.
Another example:
If the return value is, say, 22 then we can write this as binary 10110 which means (reading right to left)
0 - MACD, entry=0
1 - RSI, entry=1
2 - Stoch, entry=1
3 - System 3, entry=0
4 - System 4, entry=1
Yet another example:
If the return value is, say, 24 then we can write this as binary 11000 which means (reading right to left)
0 - MACD, entry=0
1 - RSI, entry=0
2 - Stoch, entry=0
3 - System 3, entry=1
4 - System 4, entry=1
This is the basis to the entire binary system and is used extensively throughout all computer programming and application design; so why not MS?
All you have to do now is code an expert symbol for every possible
combination!!! Or just learn to read decimal numbers as binary (Windows
Calculator is a useful for this whilst you are learning)
Hope this helps, or at least you another way to think about the problem?
wabbit [:D]
NOTE: Use caution combining more than 15 systems this way, else MS
might start doing some of its own rounding off as pow(2,15)=32768,
pow(2,16)=65536 which in MS terms are quite large numbers and may be
subject to 'precision errors'.
|