Jump to content

Welcome to the new Traders Laboratory! Please bear with us as we finish the migration over the next few days. If you find any issues, want to leave feedback, get in touch with us, or offer suggestions please post to the Support forum here.

feng2088

Members
  • Content Count

    35
  • Joined

  • Last visited

Everything posted by feng2088

  1. Thanks Tams. I am using TradeStation and I have the dots plotted. They look good.
  2. First of all I am a newbie on emini trading, but I have been learning, reading and programming my strategy. As I never scalped Emini on the10-tick chart before, I don't know if my strategy would work in reality, but it worked well on backtesting. I use limit orders to buy and sell, and I also set a stoploss. So I can avoid most of the slippages. I understand that Stoploss is the only type of orders would have slippage among the three I use. I backtested my strategy from 12/16/2010 -2/25/2011 on the 10-Tick chart. I got arond 80 to 200 trades a day. The profit factor was 3.7 and the percent profitable was above 80%. I am doing fronttesting now and it's working well. I am going to add a max-loss-allow and if that number is hit, it will stop trading for the day. What else did I miss? I am still afraid to go live yet. Some people said that you would get different numbers when you go live. Is that true? Thanks all.
  3. Thank you much for your post, Billy! I modified my codes and now for both buy and sell I use limit orders (see below). I want $0 slippage always. You mentioned that if I used -0.25 limit, my order may not be filled, That is ok since I will be trading on the 25 ticks time frame. I don't mind missing those opportunities. I am not ready to go live yet as I am not sure if i miss anything here. I attached couple screenshots of my strategy performance and settings . The return seems good when I backtest it, but would I see a big discrepancy if I go life? Thanks Buy next bar at open next bar -0.25 limit ; If Positionprofit > x amount then Sell next bar at Positionprofit limit;
  4. " Buy next bar at open next bar -0.25 limit " ----- would this line of codes help me get the position filled at the bid price? how long would TS wait until it cancels the excecution if the order doesn't get filled? I will be trading on a 1 min time frame. Thanks
  5. Thanks all. You are right I didn't think about slippage. I think I should use limit orders to enter and exit. Are there any reserved words I can make Tradestation to buy at bid and sell at ask? And if the buy order didn't get fill in 5 second, the trade would be cancelled? Thanks
  6. Hello all, I was here three weeks ago asking for help on some coding issues. A lot of you advised me to learn and read more about EasyLangage. I really appreciated your suggestions. Now I am able to program some simple strategies with EasyLanguge. I came up with a strategy that has a 91% winning rate. However the profit factor is only 1.15 and the total net profit is less than the total commission. I tested this strategy with one emini contract on a two year 1-mini data feed. Can you please review the attached performance reports and advise if this strategy is applicable? Should I find a new broker that offers lower rates? Thanks.
  7. Thank you all for your advice. I downloaded the EasyLanguage Essentials and read some pages of it. I put some comment on a few lines but not sure if I understand the codes correctly. Can your guys please take a look? For the ones that have ?? at the end :doh:, can you please shred some lights? Thank you for your time and help. Enjoy your weekend. if trend = _UP then begin if swingHighBar(1,H,2,barsSincePaint+2) > -1 then begin // if this is true then possibleHighBarsAgo = swingHighBar(1,H,2,barsSincePaint+2); // possibleHighBarsAgo changed from 1 to 2 possibleHigh = H[possibleHighBarsAgo]; // possibleHigh changed from -2 to H[2] ???? (No sure) end; if possibleHigh >= hightoBeat then begin //if possibleHigh is true then begin??? (No Sure) highBarsAgo = possibleHighBarsAgo; // highBarsAgo = 2 hightoBeat = possibleHigh; //hightoBeat = H[2] triggerPriceSell = L[HighBarsAgo - 1]; //triggerPirceSell = L[2-1]= L[1] end; if C < triggerPriceSell and highest(high,highBarsAgo) < hightoBeat then begin //highest(high,2) < h[2] plot1[highBarsAgo](H[highBarsAgo],"",sellColor); alert("Scalper Sell"); trend = _DOWN; barsSincePaint = highBarsAgo-1; // barsSincePaint= 1 hightoBeat = -1; lowtoBeat = 10000000; triggerPriceBuy = 10000000; triggerPriceSell = -1; highBarsAgo = 1; possibleHigh = -2; end;
  8. Yes, I do, but not too much. I don't understand how these variable are defined. I need someone to help me get started. If you can help me understand the first half of the codes, I would really appreciate it.
  9. Hello , I am trying to understand these codes line by line. I spent 2 hrs try to figure out what each line does, obviously I couldn't figure out. Can someone please put comment next to each line and help me understand? I know it's a lot, but I really appreciate your help. Thanks much! {Scalper Buys and Sells 7/18/2007 Written by Luis Gomez inspired by John Carters "Mastering the Trade" This plots swing highs/lows with a strength of 2 bars on each side, on the condition that there is a close above/below the high/low the bar after the said swing bar......whew that's a mouthful! } inputs: buyColor(white), sellColor(yellow); variables: highBarsAgo(1), possibleHighBarsAgo(1), possibleHigh(-2), hightoBeat(-1), barsSincePaint(1), lowBarsAgo(1), possibleLowBarsAgo(1), possibleLow(10000001), lowtoBeat(10000000), triggerPriceSell(-1), triggerPriceBuy(1000000), trend(1), _UP(1), _DOWN(-1), _ON(1), _OFF(-1); if trend = _UP then begin if swingHighBar(1,H,2,barsSincePaint+2) > -1 then begin possibleHighBarsAgo = swingHighBar(1,H,2,barsSincePaint+2); possibleHigh = H[possibleHighBarsAgo]; end; if possibleHigh >= hightoBeat then begin highBarsAgo = possibleHighBarsAgo; hightoBeat = possibleHigh; triggerPriceSell = L[HighBarsAgo - 1]; end; if C < triggerPriceSell and highest(high,highBarsAgo) < hightoBeat then begin //plot1[highBarsAgo](H[highBarsAgo],"",sellColor); Sell next bar at market; alert("Scalper Sell"); trend = _DOWN; barsSincePaint = highBarsAgo-1; hightoBeat = -1; lowtoBeat = 10000000; triggerPriceBuy = 10000000; triggerPriceSell = -1; highBarsAgo = 1; possibleHigh = -2; end; end; //*************************************************** //****** Find and plot the lowest swing low ********* //*************************************************** if trend = _DOWN then begin if swingLowBar(1,L,2,barsSincePaint+2) > -1 then begin possibleLowBarsAgo = swingLowBar(1,L,2,barsSincePaint+2); possibleLow = L[possibleLowBarsAgo]; end; if possibleLow <= lowtoBeat then begin lowBarsAgo = possibleLowBarsAgo; lowtoBeat = possibleLow; triggerPriceBuy = H[LowBarsAgo - 1]; end; if C > triggerPriceBuy and lowest(L,lowBarsAgo) > lowtoBeat then begin plot1[lowBarsAgo](L[lowBarsAgo],"",buyColor); alert("Scalper Buy"); trend = _UP; barsSincePaint = lowBarsAgo-1; possibleLow = 10000001; lowtoBeat = 10000000; hightoBeat = -1; triggerPriceBuy = 10000000; triggerPriceSell = -1; lowBarsAgo = 1; end; end; barsSincePaint = barsSincePaint+1; if trend = _UP then highBarsAgo = highBarsAgo + 1; if trend = _DOWN then lowBarsAgo = lowBarsAgo + 1;
  10. Hello, I tested my strategy with two emini (ESH11 and ESZ10) for 150 days back, but the result was so different on the same month. I was down about $1100 in Oct on ESZ10, but only down $15 on ESH11 in Oct. I am thinking TradeStation couldn't let you download historical data for too far. The test result is not accurate if you do that. Has anyone expericed this before? Thanks
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.