Tuesday, December 20, 2016

market order /stop lost

Need to put stop tight, lost over 1000 in minutes, because bought CWEI 118.5 with market order and it dropped to 117 in minutes and stop loss sold at 116.65

Thursday, December 15, 2016

Bob trade

Me: Good evening, Bob, my bad trades yesterday, turn out good today
9:13 PA_Bob: great your doing better
9:13 Me: FAS $708.82
9:14 PA_Bob: sweet tide turning for my friend
9:14 Me: JPM $841.68, BAC $256, C 94.23
9:15 Me: Best is ATHN $2384
9:15 Me: total gain $366.63
9:15 Me: $3666.63
9:15 PA_Bob: wow I am happy makes you a nice xmas
9:15 Me: too bad that I have to work, so can not focus
9:17 PA_Bob: well your doing well manageing your time good
9:17 PA_Bob: your amazing how well you do with working
9:19 Me: I am trying to find a work from home job
9:20 PA_Bob: yes I told you that
9:20 PA_Bob: smart man
9:21 Me: Do you use 20EMA to trigger buy?
9:21 PA_Bob: I bet once you have time you be helping me
9:21 PA_Bob: I only buy patterns
9:21 PA_Bob: bull coils
9:21 PA_Bob: bull wedges
9:21 PA_Bob: bullish flags
9:22 Me: so when you see it forms bull x, then you place buy and wait for pop?
9:22 Me: if pop then you win, then tighten stops
9:22 PA_Bob: yes
9:22 PA_Bob: it works
9:23 PA_Bob: I use 4 sma and 9 sma
9:23 PA_Bob: on 5 min
9:23 PA_Bob: use one to enter
9:23 PA_Bob: one mintue
9:23 PA_Bob: then once in I go to 5 min
9:24 Me: cross below 9ma then out right?
9:24 PA_Bob: yesssssssssssssssssss
9:24 PA_Bob: gone like the wind
9:24 PA_Bob: where do you live
9:24 PA_Bob: it so frezzing cold here
9:24 Me: ohio
9:24 Me: columbus
9:25 PA_Bob: k you have same weather
9:25 Me: correct
9:25 PA_Bob: explain how you make a trade

Wednesday, December 14, 2016

20EMA worked again

alert send when CWEI cross over 20EMA from Fidelity alert, I bought at 99.99 and sold at 103.xx, but not sure what's wrong with my mind, I only bought 50 shares, should be 2000 shares.

But have to watch constantly to up the stop loss price, it could drop any time, I used $1 stop first, when continue go up, use 50 cents, then 20 cents, then 10 cents.

Monday, December 12, 2016

Sunday, December 11, 2016

buy if price drops 60 cent from previous close

using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using WealthLab;
using WealthLab.Indicators;

namespace WealthLab.Strategies
{
public class MyStrategy : WealthScript
{
protected override void Execute()
{
if( Bars.IsIntraday )
{
SetScaleDaily();
var dailyClose = Bars.Close;
var limitPrice = dailyClose - 0.60;
RestoreScale();
dailyClose = Synchronize(dailyClose);
limitPrice = Synchronize(limitPrice);
PlotSeries(PricePane,limitPrice,Color.Maroon,WealthLab.LineStyle.Solid,1,"Previous day's close - $0.60");
           
int todayClose = 1600;
int nextToLastBarTime = AddIntegerTime( todayClose, -Bars.BarInterval );
var okToReenter = true;
           
for(int bar = GetTradingLoopStartBar(1); bar < Bars.Count; bar++)
{
if (IsLastPositionActive)
{
Position p = LastPosition;
double amount = p.MFEAsOfBar(bar) / p.Shares + p.EntryPrice - 0.20;
                 
if( (GetTime(bar) >= nextToLastBarTime) )
if( SellAtMarket(bar+1, p, "EOD") )
okToReenter = true;

if( SellAtTrailingStop(bar+1, p, amount, "Trailing exit") )
okToReenter = false;
}
else
{
if( Date[bar].Date > Date[bar-1].Date )
okToReenter = true;
                 
if( !Bars.IsLastBarOfDay(bar) && okToReenter )
if( BuyAtLimit(bar+1,limitPrice[bar]) != null )
okToReenter = false;                    
}
}
}
else
DrawLabel(PricePane, "Switch to intraday data");
}
     
public int GetTime(int bar)
{
return Date[bar].Hour * 100 + Date[bar].Minute;
}
     
public int AddIntegerTime( int t, int minutes )
{
int res = 60 * ( t / 100 ) + ( t % 100 );   // minutes past midnight
int res1 = res + minutes;
res1 = res1 / 60 * 100 + ( res1 % 60 );
if( res1 >= 2400 )
return (res1 % 2400 );
else if( res1 < 0 )
return AddIntegerTime( AddIntegerTime( 2400, minutes ), res );
else
return res1;        
}
}
}