[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [amibroker] Random trades: is Excel better than Amibroker?



PureBytes Links

Trading Reference Links

Hello guys,

Thanks for your input.
What I would like to do is to take the current chart and transfer an 
order to Ninja trader by clicking on the scan button.  When variable 
= 0 no export when variable is 1 export to the ninjatrader 
directory.  As the pram functions caches it values once I do not 
want to use it.
As it might send unwanted orders to Ninja trader. That is why I 
started to experiment with Vbscript. 
Up so far I came up with a pratialy completed script.


WNJ =0;

EnableScript ( "vbscript" );

 <%
Dim Input
Input = InputBox("Enter 0 No Order; 1 Export order" )
Inputval = CInt( Input )
  
Select Case Inputval 
 
Case 0
 MsgBox "No Export to Ninja Trader."

Case 1
AFL.Var(WNJ) = Inputval 
 MsgBox "Data Exported to Ninja Trader"

Case else 
   MsgBox "Rerun Scan Data not exported to Ninja Trader."

End Select 

%>





--- In amibroker@xxxxxxxxxxxxxxx, "dingo" <dingo@xxxx> wrote:
> What are you trying to do (in words please).  Looks like you're 
trying to
> enter a numeric value for some reason but what you have is not 
even close.
> You can enter a value in a formula via the "Param" function. I 
suggest you
> read about that in the help file.
>  
> d
> 
> 
>   _____  
> 
> From: gunovanengel [mailto:gunovanengel@x...] 
> Sent: Monday, August 16, 2004 7:18 AM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Hello AmiBroker / Vbscript Guru's
> 
> 
> Hi,
> 
> Can you show me how I can get this vbscript to work in Amibroker.
> 
> Thanks
> 
> Refards
> Guno
> 
> EnableScript ( "vbscript" );
> 
> <%
> Sub Submit_OnClick
>   Dim TheForm
>   Set TheForm = Document.ValidForm
>   if IsNumeric(TheForm.Text1.Value) Then
>     if TheForm.Text1.Value < 1 OR TheForm.Text1.Value > 10 Then
>       MsgBox "Please enter a number between 1 and 10."
>     else
>       MsgBox "Thank you."
>     End if
>   else
>     MsgBox "Please enter a numeric value."
>   End if
> End Sub
> 
> </SCRIPT>
> 
> %>
> 
> 
> 
> Check AmiBroker web page at:
> http://www.amibroker.com/
> 
> Check group FAQ at:
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
> 
> 
> 
> Yahoo! Groups Sponsor	
> 
> ADVERTISEMENT
>  
> 
<http://us.ard.yahoo.com/SIG=1299v8003/M=298184.5285298.6392945.30011
76/D=gr
> 
oups/S=1705632198:HM/EXP=1092741458/A=2164331/R=0/SIG=11eaelai9/*http
://www.
> netflix.com/Default?mqso=60183351> click here	
>  
> <http://us.adserver.yahoo.com/l?
M=298184.5285298.6392945.3001176/D=groups/S=
> :HM/A=2164331/rand=500901858> 	
> 
> 
>   _____  
> 
> Yahoo! Groups Links
> 
> 
> *	To visit your group on the web, go to:
> http://groups.yahoo.com/group/amibroker/
>   
> 
> *	To unsubscribe from this group, send an email to:
> amibroker-unsubscribe@xxxxxxxxxxxxxxx
> <mailto:amibroker-unsubscribe@xxxxxxxxxxxxxxx?subject=Unsubscribe> 
>   
> 
> *	Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
Service
> <http://docs.yahoo.com/info/terms/> . 
> 
> 
> 
> 
> [Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/