if (Curtime()<D'2006.10.02 00:00')
{
indicator work.......
}
else
{
alert(...);
}
if (Curtime()<D'2006.10.02 00:00')
{
indicator work.......
}
else
{
alert(...);
}phoenix,
how about so it can only be used in one computer and the licensing key? not that it will be commercialized; just so it will be for limited users and controlled distribution only.
thanks,
solaris
give your customer a register no. that only your customer will know
like my reg. no. = G4258DLLK8
then
if(regno==G4258DLLK8)
{
those code above
}
else
{
Alert("Incorrect Register No.");
}
------------------------------
but this is a manual process
give your customer a register no. that only your customer will know
like my reg. no. = G4258DLLK8
then
if(regno==G4258DLLK8)
{
those code above
}
else
{
Alert("Incorrect Register No.");
}
------------------------------
but this is a manual process
thanks again, phoenix. manual process is fine since it is not for mass distribution. i will give it a try and let you know.
solaris
Thanks
Thanks guys...
phoenix,
I used your codes as you have indicated in your previous posts here. However, I am still getting an error when I compiled it. Would you please help fix it. Here is what I have done:
{
"XWZ works"
else
{
Alert("Current Use License Expired. Please contact XWZ@yahoo.com");
}
if(regno==G4258DLLK8)
{
"those code above"
}
else
{
Alert("Incorrect Register No.");
}Here is the error message I am getting:
'\end_of_program' - more than 1 symbol
I truly appreciate your help.
solaris
if (Curtime()<D'2006.10.02 00:00')
{
"XWZ works"
}
else
{
Alert("Current Use License Expired. Please contact XWZ@yahoo.com");
}
if(regno==G4258DLLK8)
{
"those code above"
}
else
{
Alert("Incorrect Register No.");
}
--------------------------------
you forgot the pink one
if (Curtime()<D'2006.10.02 00:00')
{
indicator work.......
}
else
{
alert(...);
}So if I wanted an indicator to work for two weeks from today 10/09/06 how would I set the code?
Is this correct?
if (Curtime()>D'2006.10.23 00:00')
{
"Auto Trader trial period"
}
else
{
alert("End of trial period");
}
datetime allowtime = D'2006.10.01 00:00';
datetime allowto = D'2006.10.13 00:00';
if(CurTime()>allowtime && CurTime()<allowto)
{
............................your code inside this
}
How to setting script as To Close Position..
Hi All,
Anyone could help : how to set up script to CLOSE POSITION by indicator, not by STOPLOSS. eg : We have setting up that OPEN BUY when MACD_MAIN > MACD_SIGNAL and OPEN SELL when MACD_MAIN < MACD_SIGNAL.
And then, it automatically CLOSE THIS POSITION when MACD_MAIN < MACD_SIGNAL. Then, proceed with OPEN SELL as this condition for OPEN SELL also.
Thank you.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
How do you set an expiration date for an indicator; so that when that date
is reached the indicator ceases to operate?
I found this code; but all it does is create an alert. However, the indicator still works.
if ((Day() >= 02) && (Month() >= 10) && (Year() >= 2006))
{
Alert("Trial has ended. Please contact youremailaddress@whatever.com");
return(0);
}
Thanks in advance for any help on this matter.