[amibroker] exploration

2009-03-20 Thread zeek ing
Hello all, I am new to amibroker and am trying to run some explorations on a system I have built. I have read the tutorial on exploratins but still a bit confused. ANy one have any sample exploration code that I could look at or sore reading material on it. please let me know ze

[amibroker] quote tracker problem

2009-03-25 Thread zeek ing
hello I have quotetracker. My amibroker is misssing data points from quotetracker and I want to back fill. I have the data in quoptetracker as I checked there charts and the missing data is there, but I can't seem to find a way to transport it into quote tracker does anyone know how to do this??

[amibroker] day trading question

2009-03-27 Thread zeek ing
hello, anyone know the code for a system to close all open positions when the market closes for that day. Basically a day trading position? Then at the open of the next days sessions the system start again. thanks zeek

[amibroker] price not close question

2009-03-31 Thread zeek ing
I have a trading system that I want to buy when price crosses above 20 bar high. I know how to write if high or close crosses. but i want to know if price crosses above even if not high or close, just the current price. How would I code that? thanks in advance . zeek

[amibroker] question on trailing stop

2009-04-02 Thread zeek ing
here is an easy one anyone know how to code a trailstop at the entryprice of a trade? either the buyprice or the short price. It would be appreciated thanks zeek

[amibroker] interactive brokers code

2009-04-06 Thread zeek ing
Hello, I am trying to incorporate IB automation into my trading system. I read the manual about automation. Does anyone have some sample code they wrote with IB automation thanks zeek

[amibroker] help mulitple exit and entry

2009-04-20 Thread zeek ing
looking for a code to use on multiple entry and exits for the autotrader with IB. i have the code with the system in amibroker but I am tryign to plug it in to autotrader. Any one know how to do that?? thanks in advance zeek

[amibroker] trying to set up gmail in alerts

2009-04-20 Thread zeek ing
I am trying to set up gmail in my alerts in preferences, has anyone done that that can help me out?? thanks zeek

[amibroker] trying to understand this code

2009-04-28 Thread zeek ing
Hello all, I found this code in one of the files on the autrading group. I think herman wrote it. PrevDT = StaticVarGet("DateTime"); DT = LastValue(DateTime()); NewBar = DT != PrevDT; StaticVarSet("DateTime",DT); My question is how could DT != PrevDt., Because DT is lastvalue date time and

[amibroker] display arror

2009-05-04 Thread zeek ing
Any one can help it would be great i have a strategy that checks out in afl and sometimes displays on a chart but after a few seconds the chart screen goes blank and reads "error: formula execution halted because of an error - no chart to display." then if i click the screen the chart will reapp

[amibroker] initializing static variables.

2009-05-04 Thread zeek ing
My questions is regarding static variables. When using them for IB controller, does one need to initialize them when autotrader is turned on. can one set them by using a param trigger like; paramtrigger( "autotraderstart",autotrader on) if (autotraderon) setstaticvar("", '''): etc etc with

[amibroker] strategy with a profit target

2009-05-06 Thread zeek ing
Hello all, I have been working on a strategy with a profit target for some time now and trying to automate it into IB. this is proving most difficult as I can't seem to get any of the orders to process. If any one has a piece of autocode that uses 2 profit targets, I would love to see it. Or if

[amibroker] looping question

2009-05-11 Thread zeek ing
Hello all I am trying to understand loops more clearly. I have a question on some code that i have been studying maybe someone can help: If I have a loop for( i = 0; i < BarCount; i++ ) { condition . { for (j = i + 1; j < BarCount; j++) { .

[amibroker] question on multiple charting screens

2009-05-12 Thread zeek ing
Anyone have this problem before. I have one screen plotting achart with an autotrading system connected to IB. when I open another pane on that chart and populate it with another system either hooked up to autotrader or not, the screen says error and won't plot the chart. So I can only display o

[amibroker] best way to set up automated profit targets

2009-05-12 Thread zeek ing
Hello all, I have managed to set up a backtester that uses sigscaleout with loops. I would like to use a sigscaleout type function for autotrader. does anyone have any ideas on how to do that?? thanks zeek

[amibroker] waitperiod

2009-05-13 Thread zeek ing
hello all, here is an interesting question. one of my triggers is a moving average crossover. Once the crossover occurs i have another condition. and buy is created if condition B is met. I want to give the second condition only 10 bars to be completed after the moving average crossover occurs in

[amibroker] hello all S&P emini question

2009-05-17 Thread zeek ing
Hello, all I am trying to set up a backtester on s&P emini data. Just wanted to know what the appropriate point value should be in the code. I thought 0.5m but i am not sure. Can anyone help? zeek

[amibroker] buy only if current position is zero

2009-05-19 Thread zeek ing
Is there a way to code that one should only buy if current position is zero?? Meaning one is currently not short. and vica versa. I can't seem to find away to this?? please help

[amibroker] question on i-j; in a loop

2009-05-20 Thread zeek ing
Hello all, So I have been studying this loop over and over again and have a problem. It is used for sigscaleout. I am not sure what i=j does in the code. I should say why it does what it does. When I remove the i=j in the code, then the chart plots multiple short signals for that short. WHen the i=

[amibroker] sigscaleout question

2009-05-24 Thread zeek ing
Hello all, I have a question on sigscaleout. Do i have to use a loop when I use sigscaleout or can I use it in an array? so far I have only been able to use it in a loop. Also, if I have a short sigscaleout and a long sigscaleout in the same loop. I have noticed that only one of the sigscaleouts a

[amibroker] setting position size in the backtester

2009-05-27 Thread zeek ing
Hello, Is there a way to code the position size in the backtester based on the current account value in the backtester?? So like if my account increases 10K, i would add another contract?? thanks zeek

[amibroker] trying to access current account equity and plot it

2009-05-27 Thread zeek ing
Hello all, I am trying to access my account equity from the backtester and plot it on the chart. Below is the code I have but I am pretty sure that it is wrong but not sure why. Can anyone help??? Curequity=0; SetOption("UseCustomBacktestProc", True ); if( Status("action") == actionPortfolio ) {

[amibroker] IS the User KB down

2009-06-01 Thread zeek ing
Hey everyone, Is the USERKB weblink broken? I can't seem to access it??? thanks zeek

[amibroker] Static var help

2009-06-02 Thread zeek ing
I think I am having a little problem with my static var code. I expected to see in an exploration with the variable "onshort" a value of 1 when a short trade is on. Instead all I see is zeros in the exploration. I am not sure why. there are two parts to the code. If anyone can tell me what is wron

[amibroker] What is wrong with this code

2009-06-10 Thread zeek ing
Can anyone tell me why this code won't produce a sigscaleout in an exploration?. I thought I had the right code. I guess i Don't. thanks Buy= conditon1 AND (H>highsignal); BuyPrice = Max(O,Highsignal+.05); Sell= Low<=TrailingStop; SellPrice = TrailingStop; Buy = IIf( Buy == sigScaleOut, Buy, E

[amibroker] Sigscaleout CUStom backtest interface

2009-06-12 Thread zeek ing
Hello all, I have been working on plotting the actual trade with the custom backtest interface. I have been able to do that for the buy,sell,short,cover. I am having some difficulty with the sigscaleout to plot? I can't seem to figure out how to access it. can anyone help me with this task. t

[amibroker] Custom Backtester interface posshares

2009-06-17 Thread zeek ing
hello all, I am trying to access the custom backtester interface to change the share size based on account value. But the code is off. I think sig.poshares is incorrect. Is there another term to call or set the shares in the backtester. thanks if (Status("action")==actionPortfolio) { bo=GetBackt