NexusFi: Find Your Edge


Home Menu

 





spread in market scanner


Discussion in EasyLanguage Programming

Updated
    1. trending_up 3,379 views
    2. thumb_up 3 thanks given
    3. group 1 followers
    1. forum 4 posts
    2. attach_file 0 attachments




 
Search this Thread

spread in market scanner

(login for full post details)
  #1 (permalink)
 neuro 
torino,italy
 
Experience: Master
Platform: multicharts
Trading: futures
Posts: 3 since Dec 2010
Thanks Given: 1
Thanks Received: 0

Hi everyone! I'm a new member.My name is Marco. I use Multicharts.
I'd like to create a market scanner for screening spreads of a stock vs index! how can I do?
I can't use data2 in market scanner!
I could try to use ade but I'm not able to use ade with 2 different symbol!

can anyone help me?

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Searching for CurrentMonthOHL Indicator
NinjaTrader
Wicked Renko Bars
Traders Hideout
Trader Dale [email protected] or Scammer Dale
Trading Reviews and Vendors
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Tao te Trade: way of the WLD
35 thanks
GFIs1 1 DAX trade per day journal
31 thanks
Supertradersams Thread Journal on NQ/MNQ
25 thanks
Deaddogs Stock Trading
22 thanks
Leaving CFD trading and learning futures
11 thanks

(login for full post details)
  #3 (permalink)
 
Jura's Avatar
 Jura   is a Vendor
 
Posts: 775 since Apr 2010
Thanks Given: 2,352
Thanks Received: 690



neuro View Post
I could try to use ade but I'm not able to use ade with 2 different symbol!

You can use ADE with 2 different symbols, which would also make it possible to work with historical spread values (meaning, the values for previous bars).

Since you want to plot it in the Market Scanner, an easier solution would be to use GlobalVariables (since you don't need the historical spread values, but only the real-time).

Something like the following untested indicator to get you started:
 
Code
// Update the Global variable with the last value of the index
if (GetSymbolName = "MyIndex") then begin

    value1 = GVSetNamedDouble("myIndex_Sprd", Close);

end 

// If the current symbol is not the index, get the global variable and calculate the spread
else begin

    value1 = GVGetNamedDouble("myIndex_Sprd", Close) - Close;
    
    Plot1(Close);
    
end;
(Though you probably want to calculate the spread with an index on a different way).

Reply With Quote
The following 2 users say Thank You to Jura for this post:
(login for full post details)
  #4 (permalink)
 neuro 
torino,italy
 
Experience: Master
Platform: multicharts
Trading: futures
Posts: 3 since Dec 2010
Thanks Given: 1
Thanks Received: 0

thank's a lot!
I'll try to use globalvariables.
can you write me an example of ade with 2 symbols?
thank you again for your help
marco.

Started this thread Reply With Quote
(login for full post details)
  #5 (permalink)
 
Jura's Avatar
 Jura   is a Vendor
 
Posts: 775 since Apr 2010
Thanks Given: 2,352
Thanks Received: 690


neuro View Post
thank's a lot!
I'll try to use globalvariables.
can you write me an example of ade with 2 symbols?
thank you again for your help
marco.

See this thread for an example of using ADE with 2 symbols.

Reply With Quote
The following user says Thank You to Jura for this post:





Last Updated on February 23, 2012


© 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