| Coding Forum Collaborate, receive help, or discuss coding related issues. |
![]() | | Tweet | |
| | #9 | ||
![]() | Re: Suggestion on Platform for Coding Basic FX System (non Execution) You didn't say who your broker is? I use interactive brokers who've run and ECN and have got half tick spreads on EU and during peak time, some of the other majors, but do have commissions. As well as visual/audio/email etc signal generation you can deal with order generation. On chart; on dom; electronically. For example, with M5 forex I always enter with a trailing stop limit so I have an autohotkey pull down menu for each of the pairs I trade on short term to buy or sell (and single buttons to cancel all orders or close and cancel if things go wrong). Then a module on SC tracks price down until the stop limit gets hit. Bracket stop and targets are handled automatically. I believe you can deal with NT in a similar way but I understand its a bit buggy at times and I'm sure it's more expensive (if you're actually trading). | ||
| |
|
| | #10 | ||
![]() | Re: Suggestion on Platform for Coding Basic FX System (non Execution) . | ||
| |
|
| | #11 | ||
![]() | Re: Suggestion on Platform for Coding Basic FX System (non Execution) Quote:
I thought I might look at SC for a little project I am working on, thats related to this thread. I plan to use an automated intraday entry method via a simple script of some sort (eg; MA cross over) , and then a discretionary method for exits - so that any stops get manually adjusted either intraday on an end of day basis. The remaining positions that are open might be held for days/weeks/months. It will be linked to IB TWS. currently I am thinking MultiCharts might be best for this - except it does not have a DOM and manual trading off the chart - but Sierra charts could also be worth a look. Given you are a heavy user of SC do you have any thoughts on how easy this might be implemented via SC? thanks. Last edited by SIUYA; 09-24-2010 at 03:24 AM. | ||
| |
|
| | #12 | ||
![]() | Re: Suggestion on Platform for Coding Basic FX System (non Execution) On two of the charts you can see some grey numbers. The first number is time till bar closes (which I havent bothered to make work in sim mode so the numbers are "funny" on the picture). The second shows the 4 digits in the text file. 1=do nothing, 2=buy, 3=sell, 9=flatten and cancel. Autohotkey scripts are pretty simple once you've played with them for a bit. Here's the box (my stuff is never commented and it may have stuff in a script left over from an earlier one I modified to get from point A to point B )I use autohotkey scripts to convert keys into macros (application sensitive) and also to do stuff like autoboot tws + various sierra chart instances (you can run as many scs on one pc as you want and (i think) 3 on separate pcs). Code:
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetBatchLines,100ms
#SingleInstance force
SetEnv, Kill,
SetEnv, Active,
SetEnv, Retrace, 9
OnExit, ExitSub
Gui +AlwaysOnTop
Gui +Resize MinSize90x30 +MaxSize900x400
Gui +ToolWindow
;Gui, Add, Checkbox, vOnOff gCBox
Gui, Add, Button, vOnOff gCBox
Gui, Add, DropDownList, vEU x+5 AltSubmit gEURUSD, EURUSD||Buy Euro|Sell Euro
Gui, Add, DropDownList, vAU x+5 AltSubmit gAUDUSD, AUDUSD||Buy Aussie|Sell Aussie
Gui, Add, DropDownList, vGU x+5 AltSubmit gGBPUSD, GBPUSD||Buy Cable|Sell Cable
Gui, Add, DropDownList, vEJ x+5 AltSubmit gEURJPY, EURJPY||Buy E J|Sell E J
Gui, Add, Button, vKill x+5 gKill
Gui, Show, X-700 Y-19, Order Management
Gui,Submit,NoHide
GoTo Text ;
ButtonCloseGui:
ExitApp
Cbox:
GuiControl,Choose,EU,1
GuiControl,Choose,GU,1
GuiControl,Choose,AU,1
GuiControl,Choose,EJ,1
GuiControl,Choose,OnOff,0
GuiControl,Choose,Kill,0
GoSub Colour
GoTo Text
EURUSD:
GBPUSD:
AUDUSD:
EURJPY:
GoSub Colour
GoTo Text
Text:
; if OnOff=1
{
FileDelete,S:\SierraChart\Commands.txt
FileAppend,%EU%%AU%%GU%%EJ% , S:\SierraChart\Commands.txt
}
GoSub Colour
Gui,Submit,NoHide
return
Colour:
if (EU=1 and GU=1 and AU=1 and EJ=1)
{
Gui, Color, C0C0C0 ; standard
} else
if (EU=2 OR GU=2 OR AU=2 OR EJ=2)
{
if(EU=3 OR GU=3 OR AU=3 OR EJ=3)
{
Gui, Color, E0E000
} else
{
Gui, Color, D0F0FF
}
} else
if (EU=3 OR GU=3 OR AU=3 OR EJ=3)
{
if(EU=2 OR GU=2 OR AU=2 OR EJ=2)
{
Gui, Color, E0E000
} else
{
Gui, Color, FF8080
}
} else
{
Gui, Color, E0E000
}
Gui,Submit,NoHide
Return
ExitSub:
FileDelete,S:\SierraChart\Commands.txt
FileAppend,1111 , S:\SierraChart\Commands.txt
ExitApp
Kill:
FileDelete,S:\SierraChart\Commands.txt
FileAppend,9999 , S:\SierraChart\Commands.txt
sleep,30
Gui, Color, C0C0C0 ; standard
Gui,Submit,NoHide
sleep,10000
GuiControl,Choose,EU,1
GuiControl,Choose,GU,1
GuiControl,Choose,AU,1
GuiControl,Choose,EJ,1
GuiControl,Choose,OnOff,0
GuiControl,Choose,Kill,0
GoSub Colour
GoTo Text
Gui, Add, Checkbox, vOnOff gCBox
Gui, Add, DropDownList, vEU x+5 AltSubmit Choose1 gEURUSD, EURUSD||Buy Euro|Sell Euro
Gui, Add, DropDownList, vAU x+5 AltSubmit Choose1 gAUDUSD, AUDUSD||Buy Aussie|Sell Aussie
Gui, Add, DropDownList, vGU x+5 AltSubmit Choose1 gGBPUSD, GBPUSD||Buy Cable|Sell Cable
Gui, Add, DropDownList, vEJ x+5 AltSubmit Choose1 gEURJPY, EURJPY||Buy E J|Sell E J
Gui, Show, X-640 Y-19, Order Management
Gui,Submit,NoHide | ||
| |
|
| The Following User Says Thank You to Kiwi For This Useful Post: | ||
SIUYA (09-24-2010) | ||
| | #13 | ||
![]() | Re: Suggestion on Platform for Coding Basic FX System (non Execution) Quote:
Broker wise I have a few, I don't tie myself to a specific broker, most of the best ones will offer the same tools to get the job done. I noticed Amibroker has a feed plugin for IB data from TWS, and has a plugin for executing with IB from the platform now. Having just explored the latest version I LOVE the Interval linking feature, I've wanted this on previous charting packages like eSignal for years now. I also like Ami's ability to switch layers on/of to keep charts free of clutter. Some things are still a bit clunky like not being able to "edge out" charts by getting rid of the title bar in the chart frame (which eSig does for me). Topping it all off I know several die hard Amibroker users with extensive coding/testing experience so I'm leaning that direction for my explorations at this point before going down an all new path like Metatrader. I'm pulling some bits of code together now and will be back to bug some coders when I hit the roadblocks. | ||
| |
|
| | #14 | ||
![]() | Re: Suggestion on Platform for Coding Basic FX System (non Execution) The things I didn't like were: - lack of "deep" control of the gui so charts were a bit 1 dimensional - lack of good multitimeframe control - the plug in for ib wasn't ready for real time reliable usage (this was about a year ago) The nice thing was that you could write your code as C++ (seems they copied the structure) if you didn't use the coding short cuts. Which meant I was planning to write and test with AB then translate to SC for real time usage. As it was I resolved backtesting sufficiently to meet my needs so dropped AB for now. Let us know how you go though. It seems a great package for the price. | ||
| |
|
| | #15 | ||
![]() ![]() | Re: Suggestion on Platform for Coding Basic FX System (non Execution) If you have a method that transfers between instruments then it is always better to trade what's hot and not trade what's not. The scan below shows 60 and 21 minute volatilities for the various pairs and is updated every minute. This scan was taken at 1352 PST Friday. ![]() cheers UB | ||
| |
|
| | #16 | ||
![]() | Re: Suggestion on Platform for Coding Basic FX System (non Execution) I have downloaded sierra chart - so far i love it. The display was a little tough to follow as there are a lot of menus and thats just a matter of getting used to it. This would normally turn me off as normally if i dont like the vibe, I am unlikely to persist, but in this case it seems to have enough flexibilty to suit me, and the Kiwi inspired autohotkeys make it even more flexible. (thanks.) On a quick look it looks great. I love the ideas of trading from the excel type spreadsheet without needing to learn C++ if you dont need to. the charts look fine and seems straightforward and also the forum seems to have plenty of info on it. Given it can feed into different brokers and also pick up different feeds it is definitely something I will persist with. plus while not a major factor - the price is good. | ||
| |
|
![]() |
| Tags |
| easylanguage, forex |
| Thread Tools | |
| Display Modes | Help Others By Rating This Thread |
| |
| ∧ Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Overhaul Your PC Settings - Run Faster | JPx2 | Tools of the Trade | 3 | 03-03-2011 06:45 AM |
| System Development - Step 1 | swansjr | Automated Trading | 5 | 09-14-2009 01:10 PM |
| OzFx System :) 100-800 Pips Per Trade | OzFx | Forex Trading Laboratory | 99 | 06-11-2008 03:48 AM |