Simple position opening?..
Simple position opening?..
20 Jun 2016, 14:37
Hello.. I am not a pro but well versed and good with the C# language, i wanna make very simple bot, that open and close position in some times under some indicator conditions, well i guess that what's everyone needs to do in some way, but after seen some samples and dwelling with all this cAlgo, i thinks what i need is much less complex.. Still i looked in the cBots and the Indicators APIs here and i don't do well with it, maybe because it's not basic enough for me, like what applies on what? is the cTrader and cAlgo interact with each other? when i have both Demo and real account, how can i tell it to apply which?, where the Indicators database come from? and does it have to do with indis that on the chart already, can i get data from them or i need to build one for each?.. i guess it's just not starts from the point i use to understand those..
So i need few things, any help will be very much appreciated.. Can anyone refer me to more basic, from the scratch guide that is not too long and shows how to basically use the cAlgo? And/or if someone could show me a simple code that do this-
If(Datetime.now.Hour >= X && Datetime.now.Hour <= Y){
if(SMA20[ClosePrices][FormerBar] < ClosePrice[FromerBar]){
Open Position in Demo account.
}
}
That's it.. I know it should be pretty easy.. But then if i have the code for that, then there's this play button, what it does? how can i tell it for what instrument? And so many other questions..
Hope someone can help here.. Thanks and have a nice day..
Spotware
22 Jun 2016, 13:59
Dear Trader,
Please have a look at the API Programmers Guides and the cAlgo user support site.
@Spotware