PDA

View Full Version : Newbie Questions


malool
10th September 2007, 01:02 AM
Thanks for the forum David,

I was wondering if anyone could help me with the following problems i have using TradeSim with Bullcharts:


after I select Preferences, Transaction Costs, Fractional Cost, where do I enter the percentage?


how do I display trades from the trade database on a daily/weekly chart.


Using the BullScript below;

Can I set the initial stop to a variable i.e. “InitialStop14 := _var1;” should this work?


Will “ExtFml("TradeSim.SetExitPriceToInitialStop");” work with “filter := true;”


How do I display chart using “ExtFml(“TradeSim.ShowTrades”,LONG,"AAC");” I get bullscript error message which says operator expected none found.





{Generated BullScript for "BullScript Scan 6" scan}



{Condition: return all securities }

filter := true;

filter;


{-- Trading System 14 : "DAILY" --}

_var1 := formula("MBMLR Test (9)[6]", Close, 2, 1, 35, 2, 1, 1, 1);

_var2 := ((not formula("LinReg less than prev (2)", Close, 35, 1, 1)) and formula("LinReg less than prev (2)[2]", Close, 35, 1, 1));

EntryTrigger14 := (Close > 0.1)

and (cross(Close, _var1))

and ((_var2));

EntryPrice14 := Close;

_var3 := formula("MBMLR Test (9)[6]", Close, 2, 1, 35, 2, 0.5, 1, 1);

ExitTrigger14 := (cross(_var3, Close));

ExitPrice14 := Close;

InitialStop14 := _var1; {will this work?}



[visible=no]

ExtFml("TradeSim.Initialize");

ExtFml(“TradeSim.ShowTrades”,LONG,"AAC");

ExtFml("TradeSim.EnableTradePyramiding",PercentProfit,10,100);

ExtFml("TradeSim.SetPyramidProfitThresholdDetection",DailyRange);

ExtFml("TradeSim.EnableProtectiveStop",0);

ExtFml("TradeSim.SetExitPriceToInitialStop");

ExtFml("TradeSim.EnablePriceFilter");

ExtFml("TradeSim.SetVolumeInfoType",LOWEST);





[name="DAILY Trades"; dp=0; visible=yes]

ExtFml("TradeSim.RecordTrades",

"TradeSim Scan 2",

LONG,

EntryTrigger14,

EntryPrice14,

InitialStop14,

ExitTrigger14,

ExitPrice14,

START);






Any help will be greatly appreciated.


Regards,
Matt