JoshM wrote:
sptrader wrote:
I know that Easylanguage has a function called "Tradestoday" which is easy to use for this purpose..
I don't have that function in my MultiCharts (7.4).

Sptrader, if the function isn't protected, can you post the code of it here?

JoshM,
Yes, its not added in the list. But MC does have it. Any ways here is the function code if u need it.
Code:
[LegacyColorValue = true];
{
User Function: TradesToday
Inputs : Target date.
Returns: Number of entries on specified date.
Properties
[ ] Auto Detest
[*] Simple
[ ] Series
Sample Usage :
if (TradesToday(Date[0]) >= 2)
then EntryOK = FALSE ;
or
if (Condition1 and Condition2 and TradesToday(Date[0]) < 2)
then begin
{ ... do something here ... }
end ;
Provided by Product Support Dept.
of Omega Research, Inc.
}
Inputs: Date0(NumericSimple) ;
Vars : Loop(0), Cnt(0) ;
Cnt = 0 ;
for Loop = 0 to 10 begin
if (EntryDate(Loop) = Date0)
then Cnt = Cnt + 1 ;
end ; { next Loop }
TradesToday = Cnt ;