Specification
Hi Hooshang!
I found great reviews about you, I hope you can help me with my code.
I was a software engineer too but that was quite a long time ago.
Im new to trading thus new to trading language.
Over a couple of months studying the charts, I just have a thought of a strategy that might work.
I have laid out my strategy in pseudo code already, around 60-70 lines only. Im mostly leaving out the forex code predefined functions because im not familiar with lots of simple terms in forex(not even talking about coding).
Sample of code i need functions are as follow (this is mostly the bulk of the work, the rest would just be setting up the order and a little error handling):
// Determines if it is trading time based on TradeSchedule input
bool InTradeSchedule()
{
bool isInTradeSchedule = false;
// Get TradeSchedule[] input
// TODO: Determines if it's trading time
return (isInTradeSchedule);
}
// Returns count of opened positions
int OpenPositionCount()
{
// TODO: Returns count of opened positions
return (_openPositionCount);
}
// Determines if Account Funds is enough though MaxOpenPosition input and 1% risk
bool IsSufficientAccountFunds()
{
bool isSufficientAccountFunds = false;
if OpenPositionCount() <= MaxOpenPosition
{
// TODO: 1% risk
}
return(isSufficientAccountFunds);
}
What I expect is a working code of course :) I also want the source code not just a complied lib.
Can you help me?