Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
On second example it complies correct however it doesn't give me correct results. It doesn't go short when the previous high higher than 21 highs and the range lower than 2 points
Please help me to fix this issue
My code idea is this:
Can you help answer these questions from other members on NexusFi?
//Second Condition - Difference between previous High[1] - Low[1] <2 points
High[1] - Low[1] <2)
{
// Go short when 2 conditoins are true
EnterShortLimit(GetCurrentBid(), "Short");
Print(Time[0]+" Sell");
}
}//End OnBarUpdate
Even it complies correct however it doesn't give me correct results. It doesn't go short when the previous high higher than 21 highs and the difference between high and low lower than 2 points.
It go short on a completely wrong price
Please help me to fix this issue
I am writing my own strategy. It is almost done.
However the last thing I have left is a daily loss limit.
I have the example of it.
However even it is complies good and doesn't have any mistakes it still works with wrong results
It works great with 1 Order - IOrder (shortOrder1)
Daily STOP LOSS = 200
However if I have 2 orders 2 IOrder (shortOrder1 and shortOrder2)
It will automatically make this command for each order
shortOrder1 = 200 daily loss
shortOrder2 = 200 daily loss
So total my loss will be 400
I want total of these orders do not go over 200
IF <DAILY STOP LOSS OVER 200> THEN <STOP TRADING>
(shortOrder1 + shortOrder1) <= 200 Stop Loss
I tried many times different things and they didn't work
I trade for today - 11/02/2015
I had a HUGE LOSS THIS DAY and my DAILY LOSS LIMIT didn't help me
My strategy works on a 5 Min interval
How can I do that in order total orders do not go over 200 daily loss?